Kentico breakcrumb webpart not using the page alias - kentico

I have two pages sitting in a folder named "Auxiliary Nav". The pages have aliases set so 'Auxuliary-Nav' doesn't show in their URLs. I thought all was good until I looked at my breadcrumbs. Ideally, the breadcrumb shouldn't show "Auxiliary Nav".
I'm using the Breadcrumbs web part on a master page, but can't see a setting for this. I had also thought about just using the CSS list menu, but not sure if this would help me here.

Turn off "Show in navigation" for "Auxiliary Nav".

Related

How to customize blog portlet in liferay

I am new to liferay and using liferay-ce-portal-7.0-ga3 i have placed a blog and able to write contents in it. i want to change the blog portlet design by adding thumbnail preview to it . My current view is it has either title,abstract and full content view. How could i customize to get blog view
You can customize Liferay's appearance through Application Display Templates (ADT). Unfortunately there's no sample for the OOTB appearances, but when you go to your site's (or the global site's) Configuration area, you can find/edit/create ADTs there. Depending on the markup and CSS, as well as your typical image size etc., the actual ADT you write would be different, thus impossible to include anything here.
The editor however, has some autocomplete and some predefined entries/fields, that should give you a starting point. E.g. when you just open a blank editor and hit the "Blog Entries" field, you'll end up with
<#-- Application display templates can be used to modify
the look of a specific application. Please use the
left panel to quickly add commonly used variables.
Autocomplete is also available and can be invoked
by typing "${". -->
<#if entries?has_content>
<#list entries as curBlogEntry>
${curBlogEntry.title}
</#list>
</#if>
You'll find what you can do with BlogsEntry in it's javadoc, make sure to follow the BlogsEntryModel superclass link as well to see more.
I'll have to leave the exercise to generate proper markup and styling to you though.

Liferay Sitemap: Filter List of Layouts by SEO Settings

As you probably know, there is a Sitemap-Portlet in Liferay that you can bring into form using a Freemarker-Template in Portlet-Configuration.
Now in a normal Liferay Page under "SEO Settings" you can decide whether to include that page into the sitemap or not.
If you don't include it, it gets removed from the actual Sitemap (/sitemap.xml) but still is shown in the portlet.
Is there a way to access these "SEO Settings" (from freemarker code) so I could somehow filter by setting?
Thanks in advance!
Nevermind, I found out when looking into liferay database table 'layout'.
There is a column for TypeSettings which sometimes contained 'sitemap-include=1', so I simply checked it using layout.getTypeSettingsProperty("sitemap-include").

Orchard CMS - Custom Theme, Creating sections, one with second Navigation

I have a custom theme, the footer, header & home page are all working.
I have a main navigation that links to 5 pages.
I now need to set the style for these 5 pages - and the other pages that link from them (it's different to the home page) - one section of which needs an additional navigation menu on the left (main nav is top).
Would I do this in Visual Studio - or can it be done through the admin web interface?
What is the best approach?
Thanks.
You can add an additional navigation widget on a layer that is not the homepage. As for styling differently on different pages, you could do that many ways.
For example, you could check if the page you are loading is the homepage and load some styles to overwrite the default ones. That would be the easy way I suppose.
If you need a whole new layout for the homepage, you could check out this module on the gallery which lets you select a different layout to use for each content item. Never used it myself, but looks like it could be cool :) http://gallery.orchardproject.net/List/Modules/Orchard.Module.Downplay.Orchard.LayoutSelector

Orchard breadcrumbs not working with Taxonomies

I'm using Orchard 1.6 and I'm trying to get my breadcrumb widget working for all pages and taxonomies.
For the pages, when a page is selected, the breadcrumbs work as expected:
Home > My Page > My Sub Page
However, as part of this menu (the main menu, as set up by the 'Default' Orchard recipe), I have added some Taxonomy terms (by adding the 'Menu' part to my taxonomy term content type).
When I view the term page (front end), the breadcrumbs don't render as breadcrumbs, but the full menu instead.
What I would like to know is: How do I make the breadcrumbs recognise the taxonomies and render correctly?
Is there a part I need to add to a specific content type?
For now I need to use the dirty, dirty work-around of using a HTML widget; naturally I would prefer an actual solution.
Thanks in advance!

URL based breadcrumbs display

Is it possible to show breadcrumbs based on the URL. For example if the user hits example.com it means home->test1->test and if user hits example1.com it means home->test2->test. Is it possible to control the breadcrumbs visibility. Any one guide me how to do this.
A very nice implementation of A very customizable breadcrumb can be found in the Zen theme. If you already use a sub-theme of Zen then you're in luck. You;ll only probably have to configure it and you're good to go.
Options for the breadcrumb: each theme has it's own settings. So you'll need to add the options you'll want for youre breadcrumb (On/Off, separator, home link On/Off etc.) in a themes/your_theme_name/theme-settings.php file. Here you'll find a starting point. For inspiration check out the theme-settings.php (for defining the options) and zen.info file (for providing the default values for the options).
Theme the breadcrumb: then you'll have to implement your_theme_name_breadcrumb function in template.php. Again look in the file with the same name in the Zen theme for an example.
Showing the breadcrumb: last step is to make sure that your breadcrumb is visible and you do this by printing the $breadcrumb variable. Look in the page.tpl.php file template for the default implementation and customize it as you like.
Some other points of interests:
Custom breadcrumbs haven't tried it personally but sounds promising if you're looking for customizable breadcrumb trails for node types.
An article on the above mentioned Drupal module
for those who like to get their hands dirty here you can find some nice info: http://drupal.org/node/64067
And don't forget to clear the theme cache at the end :)

Resources