Lets say I have 2 blogs: BlogOne and BlogTwo. I want the autoroute to be the same text as the blog name: mysite.com./blogone/article... or mysite.com/blogtwo/article...
How can I do that in the autoroute settings? My current setting is hardcoded: blogOne/{Content.Slug}
Try {Content.Container.Slug}/{Content.Slug}
Related
I try adding a custom CMS block for product listing in shopware 6.
I can create other blocks for example image,text,... for those i don't have any problem.
But about product listing i have problem.I do the steps correctly according to this document
But in admin panel i can't see My CMS block product listingi have only default product listing .
Also for test i change value hidden:true in sw-cms/blocks/commerce/product-listing-exam/index.js with this value my block appears.But doesn't work.i can use of my block in shop page layout type but i need use this in listing page layout
There is my source code : link
How did you created the image/text elements, did that work without problems? I created a cms block according to the documentation, but the block does not appear in the block list. There is a file in public/administration/js folder in the example plugin. Do you know what that does? Maybe the problem is because of that.
I have developed an ExpressionEngine website which has a news section. There is a news channel with categories, and the main news listing page is powered by a news/index template. The single entry (article) page is powered by a news/article template. You can see this section in action here: http://www.longbridgebirmingham.co.uk/news/. Everything's working great.
What I now need to do is list news in a very similar fashion within a subsection of the website (at segment 3 level). Here, to be exact: http://www.longbridgebirmingham.co.uk/life/community/news/. So far, I have created a new 'Community' category for the news channel and created a new community-news/index and community-news/article template which pulls in only Community news. I have used the 'Pages' facility to force this test page to use the community-news/index template: http://www.longbridgebirmingham.co.uk/life/community/news-new. Not sure if that's the right thing to do, but it seems to be working.
Now, I've been really struggling to find out a way to hook up the community-news/article template so that articles are presented at a segment 4 level: http://www.longbridgebirmingham.co.uk/life/community/news/article/url-title. Any help or advice would be really appreciated!
Thanks a lot in advance.
OK, so this is how I would recommend doing it.
you currently have your news template group which is fine.
Create categories for your news items, such as 'life' and 'community' and using the great Low Seg2Cat addon, you can then just use something like the following to filter based on the categories:
http://site.com/news/
http://site.com/news/category/
http://site.com/news/category2/sub-cat2a
This will allow you to use an unlimited number of categories and using Seg2Cat, you'll be able to filter based on the {segment_2_category_id} and/or {segment_3_category_id}.
Now, all you need to do is to append the article segment at the end if you want to show an actual article.
For example: site.com/news/category/article/url_title_of_entry/
EE, will automatically pull the article.html template from the template group.
Does this help?
How to make unique permalinks even if the post included in multiple category ?
Custom Structure /%category%/%postname%
multiple permalinks for same article effecting the facebook like count
presently seems to be like this, how can make this only for one ?
You can use help from "SEO plugins", just search on the wordpress plugins.
recently I'm using Yoast SEO plugin, http://wordpress.org/extend/plugins/wordpress-seo/
to customize the permalink with categories.
I want to create a news site in which there will be two sort of pages:
Home Page: showing the main updated (last) article today.
News Page: showing a selected news.
Both pages should look like a simple news site (showing the main article) and both should have related last news on the side.
What I want to do, is a lot like what's mentioned in the site:
Link
Problems:
This site only shows how to create the related news and not the main article.
I wanted to know how to do the same thing only without a news site (meaning a simple list with a Wiki field where the picture should be)
How can I (hoping its possible) take a Wiki field in CQWP and add smaller "width"?
Thank you in advance,
Mor Shemesh.
Create a publishing site
On the default.aspx put s Conent Query web part, configure it to show 1 article, sorted by date in decending order
Create another welcome page and put a Content Query web part there also, configure it to show several item, according to the filter you need
I have a publishing site page layout which allows untrained staff to enter news stories into a publishing site on our intranet. The Layout contains several fields which are only required occasionally and when they lack content they leave a big hole in the page design.
Is there anyway to render these fields only when they contain content?
Thanks in advance.
Yes - see this blog post from Andrew Connell. It walks you through writing a custom control to do this.