|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
How to hide menu item in particular language version ?Hello again,
Is there any way (other then implementation and assigning to content new layout) to hide selcted menu items via administration console in case I have no content for those menu item links in particular language version ? Regards Daimonion |
|
|
Re: How to hide menu item in particular language version ?Hi.
At this time, there's no functionality which does exactly what you describe (if I understand you correctly). First of all, there's hrefLang attribute of menu items. You could duplicate menu items using different hrefLang for them and change menu renderer a little so it renders only menu items which hrefLang matches the current language. But this does not seem to be a beautiful solution. Another possible solution is to modify PrepareMenuTag class (and, possibly, MenuUtil too). You could add an attribute to tag which would disable rendering of menu items which point to pages with no content. 'No content' here may mean, for instance, absence of a ContentFieldValue of ContentField with some fixed identifier (like 'body') and given language; field identifier could be configured through tag attribute too. You are welcome to contribute such functionality :) Roman Puchkovskiy P.S. BTW, this checking (existence of a field) may be done in JSP (in menu renderer) using contentTag, but it promises to be not so efficient. daimonion writes: > Hello again, > > Is there any way (other then implementation and assigning to content new > layout) to hide selcted menu items via administration console in case I have > no content for those menu item links in particular language version ? > > Regards > Daimonion --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How to hide menu item in particular language version ?Hello,
I have found some simple (but not perfect) solution that gives me that functionality. Thanks to "inlude external CSS files" funcionality which I described in my previous post: "[HowTo] How to make atleap use CSS uploaded from Admin Console ?" I was able to add language localised CSS files to selected content. The CSS file I add to content is really simple: .hideIfNecessery { display: none; } After including such file in the content (page) that needs hiding some particular menuItems you need only to add Style class atribute to particular menuItems via admin console: "hideIfNecessery". It is important to add above CSS file only to chosen language version of the page (so that links will be hidden only in that version of the page) becouse the "Style class" atribute is common for all language versions. The solution is not very convinient for "basic" CMS users but it is good for start. If there will be enought time I'll try to contribute more convinient "code" solution. Regards Daimonion
|
|
|
formatDate type attribute values : hyphen in docPage 86 of atleap developer guide (version 0.55), one can read :
Type of formatter: "date", "time" or "date- time". This is case-insensitive; default is "date". This is ignored if pattern is specified. Obviously, one should read "datetime" without hyphen. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: formatDate type attribute values : hyphen in docFixed. Thanks.
Jérémy Lal writes: > Page 86 of atleap developer guide (version 0.55), one can read : > > Type of formatter: "date", "time" or "date- > time". This is case-insensitive; default is > "date". This is ignored if pattern is specified. > > > > Obviously, one should read "datetime" > without hyphen. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |