404 page generation issue news category filtered - Contao - contao

I have a page listing filtered news upon category filter . So I added news category list and news list filtered modules in one page. The news list will show the news with selected category in the category list. The url generated for the news list filtered is
www.mysite/portFolio/categorie/cat
When I change the url to www.mysite/portFolio/categorie/cat. (with a dot) the page is showing 404 . But the page contain some unwanted dumps in header like ...... itemscope itemtype="http://schema.org/WebPage" data-frontend-helper="......">
I think the issue is coming from news_categories extension in which a 404 page generated in vendor/codefog/contao-news_categories/models/NewsModel.php (line no 98,99). My contao version is 4.5.8.
How to solve this issue?

Related

Ruby on Rails- How to scrape data which is loaded on page after scrolling down?

I am trying to get the title and price of all the products in the following link by scraping.
https://homeshopping.pk/categories/Mobile-Phones-Price-Pakistan
I am able to get the title and price of products but the problem is new products are added as we scroll down the page and URL of page is not changed.So I am not able to scrape info of products that are loaded after the page is scrolled down.
Inspect the ajax requests, that are called when new part of data is loaded.
They use pagination (page=2):
https://homeshopping.pk/categories/Mobile-Phones-Price-Pakistan?page=2&AjaxRequest=1&undefined
Just iterate throught pagination by incrementing page param.

How to make menu links with include?

I'm making my website with include function so less have to bee downloaded. But I just can't remember how to make it the way I wan't.
I got a menu like this: Frontpage - Products - Prices - About us - Contact.
When on the frontpage and clicking the Products link I wan't the content of the Products page to show on the same page via the include, but how is it I do that? The content of the Products page and the other will of course just bee an empty file with some text.
Can you please help me?
If you're using PHP, you can simply use file_get_contents("FileYouWantHere");. This will output the contents of that file. If that file is written in PHP too however, use include("FileYouWantHere);.

Expression Engine Channel/Category Setup

I'm trying to work out EE, and how best to build my site structure. Inspiration from saveur.com - the recipes menu.
Mini sitemap for this section as follows.
Homepage
Recipes - landing page
Course - post category - landing page
Breakfast - post subcategories - landing page
Brunch
Lunch
Mains
Deserts
Appetizers
Ingredients
Eggs
Chicken
Avacado
Fish
Can anyone explain to me the basic idea of Expression Engine channel/categories/entries, because I think I'm missing something. Take the following URL
/recipes/course/breakfast/scrambled-eggs
Recipes is the channel, with a Channel URL saved. 404 page.
Course and breakfast are both categories - landing pages that will never have content published to, but will list an index of content from their child pages. Both segments return 404. Even when Category URL's are saved
The only segment that is active is the entry itself - scrambled-eggs.
If anyone can shed some light on this, I'd be very greatful.
I'd say: Create a Recipes Channel Fields Group with ingredients
as a grid.
Create the Course Category Group and add: Breakfast Brunch Lunch
Mains Deserts Appetizers to it.
Create a Rescipes Channel and assign to it both the Recipes
Channel Fields Group and the Courses Category Group.
Create a Recipes Template group and you simply use the code below to list all your Menu items
{exp:channel:entries channe="Recipes"}
{title}
{ingredients}
{ingredient}
{/ingredients}
{/exp:channel:entries}
You can also use this link structure (/Recipes/Breakfast/) and EE will
dynamically return all the entries from the breakfast course

How to create permalink pages for individual posts and notes on Tumblr

I'm currently creating my first custom theme for Tumblr and I can't find any explanation of how permalink pages for posts and that post's notes work or how they are written, how do I go about this? what is the code needed and where is it implemented?
Anything you want to appear on a permalink only page you want to have wrapped in block:PermalinkPage tags. If you only want it to show on the index page, wrap it in block:IndexPage tags.
To get your notes to show use {block:PostNotes}{PostNotes}{/block:PostNotes}. This will only appear on a permalink page (despite it not being wrapped in block:PermalinkPage tags. {PostNotes} creates an ol tag with a class of notes for you to style in any way you'd like.

Google index MVC URIs in a long-page context

I have a long page comprised with a set of modules with their own URI
Example
Page URI
http://mysite/index/product
Module URIs
http://mysite/index/product/specifications
http://mysite/index/product/features
Now what I would like to do, is when a user searches for "features", then Google would display the content from the individual module in the search results, but when the user clicked the link, it would actually take them to the "features" section within the context of the "product" combined page.
I've tried a test using a canonical link back from the module URI to the main page but Google simply indexes the content in the full page.
How would one approach this? I'm sure it's possible?

Resources