i have a vocabulary that has couple of items each term has a Synonyms.
how can i add the vocabulary to one of my menus with the path:
vocabulary name/term Synonyms
i have looked at taxonomy menu, but cant figure out how to do it using this module or any other.
any idea ?
well to all of the 8 people who tried helping me by viewing my question, and all the rest of you out there here's how i did it:
i have created a view (which i needed originally) that gets an argument of taxonomy Term ID, added the page display, and gave it path "MY VOCABULARY NAME/%" as described in:
taxonomy menu integration with views under the "VIEWS WITH MENU PATH TYPE: CUSTOM" section.
under admin/content/taxonomy/edit/vocabulary/1 (the edit vocabulary form) i have made the following Taxonomy menu configuration:
set the vocabulary Menu location: NavigationMenu path type: CustomBase path for custom path: MY VOCABULARY NAME
once that was done my page my navigation menu has links that thier hrefs are "MY VOCABULARY NAME/1", "MY VOCABULARY NAME/2" and so on (one for each vocabulary term).
here come the tricky part:
in my theme template.php file i have implemented the function:
function phptemplate_menu_item_link($link)
{
$href = $link['href'];
$explode_href = explode("/", $link['href']);
if( 'MY VOCABULARY NAME' == $explode_href[0] ){
$options = array('attributes' => array('title' => $link['title']));
return l( $link['title'],'painting-type/' . $link['options']['attributes']['title'], $options);
}
return l($link['title'], $link['href'], $link['options']);
}
after that my navigation menu has links that their hrefs are "MY VOCABULARY NAME/TERM SYNONYMS 1", "MY VOCABULARY NAME/TERM SYNONYMS 2" and so on.
last i entered the view i created and changed it's argument to be taxonomy Term synonym.
after all that, it is working.
my vocabulary terms are added to the navigation menu with the href MY VOCABULARY NAME/TERM SYNONYMS and are linked to a view page display.
if anyone has a batter solution, I'll be happy to hear.
thanks
Related
I need set the page title dynamically because in my node actually exist 1000 documents, so I think that exist a way to do it automatly.
I'm using Kentico 10
Use a macro. In the parent page of all your documents, you can use a field from the specific page type or use the document name.
For example if you have a page tree like this:
-Products
--Product 1
--Product 2
In the -Product pages metadata add
Page title: {%DocumentName%}
or
Page title: {%PageTypeField%}
Using the macro will allow you to dynamically get those values vs. having to code each one manually.
I'm not sure that I understand your question, but if you want:
To set page title for your documents, to be shown in browser, you should follow link in documentation.
To iterate over all nodes and update document name/ page title with some custom text, you should look into Kentico API docs. You should look into section for Updating published pages (see code example bellow):
TreeProvider tree = new TreeProvider(MembershipContext.AuthenticatedUser);
var pages = tree.SelectNodes()
.Path("/Articles/", PathTypeEnum.Children)
.WhereLike("DocumentName", "Coffee%")
.OnSite("DancingGoat")
.Culture("en-us");
foreach (TreeNode page in pages)
{
page.DocumentName = "Updated article name";
page.SetValue("ArticleTitle", "Updated article title");
page.Update();
}
I use Orchard 1.10.1. I created a Content-Type called product(include 2 taxonomy).
The taxonomy are Category(book,toy,clothing) and color(red,blue,black).
When Filters taxonomy term in the dashboard,
I choose Has Terms and Category with is one of(filters Category,not color).
but, The filters display all(Category,color) Content Items.
why! please help,Thanks.
enter image description here
enter image description here
--
Hello!
I use TYPO3 CMS 6.2.9 and the Versatile News System (tx_news).
For my User (Editor), I'll only allow to add new news records in my specific sys-folder. Here's my pageTSconfig for the sys-folder:
### only for EDITORS usergroup 2
[usergroup = 2]
# only show "new news and news tag" for a new data record
mod.web_list {
allowedNewTables = tx_news_domain_model_news, tx_news_domain_model_tag
}
[GLOBAL]
It works.
But how can I translate the labels, for example in german: "Artikel" and "Nachrichten-Tag" in List-View for my Editor. I can't find these strings in Ext. news folder (typo3config/ext/news). In this case, I'll use tx_news not for NEWS, so it won't confuse my backend-user (editor) ;)
I#m talking about this List View:
I can translate all other labels via TCEFORM
TCEFORM.tx_news_domain_model_news.title.label.de = Überschrift
but not the labels at list view.
Thanks for your help.
These labels are configured in TCA for given table and only way to override it is changing it's value i.e. by adding this line to typo3conf/extTables.php
$TCA['tx_news_domain_model_news']['ctrl']['title'] = 'Change me...';
Problem with this is you can't do it conditionally by default, maybe this EXT will help you (as mentioned on some forum it's not maintained anymore)
http://docs.typo3.org/typo3cms/extensions/tcamanipulate/
How to find it: Every table has its TCA (required) so you can find it with editor, or using SYSTEM > Configuration module to browse currently loaded TCA.
Is it possible to modify the search results of Orchard, not to display parts (image gallery and contact form).
I created a site, added an image gallery. When doing searches the image gallery is displayed within the search results. The same with contact forms, they are also displayed in the search results.
Added Place Parts_ContactForm="-"/ to my placement.info (in Orchard.Search folder). See http://docs.orchardproject.net/Documentation/Understanding-placement-info#OverridingPlacement
In /Admin/ContentTypes, Edit the content type (ex : contact form), then uncheck the checkbox 'Index this content type for the search'
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!