[TYPO3-english] Typo3 metanavigation

sinu govind sinugovind at gmail.com
Wed Jun 29 14:09:28 CEST 2011


Thanks a lot. I have solved it in a different way

On Wed, Jun 29, 2011 at 1:08 PM, Riccardo De Contardi <
riccardo.decontardi at bhuman.it> wrote:

> But...tell me if I'm wrong, I guess that these Anchors like <a
> href='index.php?id=home'>Home<**/a> are Typo3 pages, right?
>
>
> so you have something like (if you are logged, I mean ;)):
>
> <ul class="top_menu">
>  <li><a href='index.php?id=home'>Home<**/a></li>
>  <li><a href='index.php?id=someother'>**Some other</a>  </li>
> </ul>
>
>
> Maybe this can fit you:
>
> Let's say that your home page has UID=1 and "someother" has UID=12
>
> I think you can "embed" the <li> and the uid in your script in this way:
>
>
>  <?php
>   session_start();
>  if ($_SESSION['logged'] == 1)
>     echo "<li class=\"p1\"><a href='index.php?id=home'>Home<**/a></li>";
>
>  else
>   echo "<a href='#dialogProduct' name='modalProduct'
>  onClick='showProductForm();'>**For Product</a>";
>  ?>
>
> So...
>
> <ul class="top_menu">
>  <li class="p1"><a href='index.php?id=home'>Home<**/a></li>
>  <li class="p12"><a href='index.php?id=someother'>**Some other</a>  </li>
> </ul>
>
> Then we'll insert the same UID in the <body> element (there are a lot of
> Typoscript tutorials about this topic)
>
> <body id="u1">
>
> Eventually, in your CSS there will be rules like:
>
> #u1 li.p1, #u12 li.p12{/*rules for different color*/}
>
> Regards
>
>
> ------------------------------**--------------
>
> Riccardo De Contardi – TYPO3 Certified Integrator
> B Human Srl - www.bhuman.it <http://www.bhuman.it>
> Via Canzio, 15 - 20131 Milano
> TEL +39-02-20.23.271 - FAX +39-02-20.240.561
> ------------------------------**--------------
>
> Il 29/06/11 08.09, sinu govind ha scritto:
>
>  Thanks for the tip, but unfortunately it does not fit into my scenario.
>>
>> Iam using a different database not the typo3 db for my user creation and
>> login/logout.
>>
>> So my content element is a PHP script element which shows 2 different menu
>> options as following
>>
>> <?php
>>  session_start();
>> if ($_SESSION['logged'] == 1)
>>    echo "<a href='index.php?id=home'>Home<**/a>";
>> else
>>  echo "<a href='#dialogProduct' name='modalProduct'
>> onClick='showProductForm();'>**For Product</a>";
>> ?>
>>
>> So when I click on this "a" tag and navigate to another page, the meta
>> menu
>> is redefined
>>
>> With warm reagrds,
>> Sinu
>>
>> On Tue, Jun 28, 2011 at 8:57 PM, Riccardo De Contardi<
>> riccardo.decontardi at bhuman.it>  wrote:
>>
>>  But... your tt_content records are anchors?
>>>
>>>
>>> My best suggestion is...style the<li>  object with some javascript...
>>> with
>>> jQuery for example, something like:
>>>
>>>
>>> $("li").click(function() {
>>>    $("li").css('background-color'****, 'white');
>>>    $(this).css('background-color'****, 'red');
>>> });
>>>
>>>
>>>
>>>
>>> ------------------------------****--------------
>>> Riccardo De Contardi – TYPO3 Certified Integrator
>>> B Human Srl - www.bhuman.it<http://www.**bhuman.it<http://www.bhuman.it>
>>> >
>>> Via Canzio, 15 - 20131 Milano
>>> TEL +39-02-20.23.271 - FAX +39-02-20.240.561
>>> ------------------------------****--------------
>>>
>>> Il 28/06/11 14.21, sinu govind ha scritto:
>>>
>>>  Hi,
>>>
>>>>
>>>> I have the following code inserted into my typoscript
>>>>
>>>> lib.topmenu = RECORDS
>>>> lib.topmenu.tables = tt_content
>>>> lib.topmenu.source = 141, 81, 119, 162
>>>> lib.topmenu.wrap =<ul class="top_menu">|</ul>
>>>> lib.topmenu.conf.tt_content.****stdWrap.wrap
>>>> =<LI>|</LI>&nbsp;&#124;&nbsp;
>>>> lib.topmenu.conf.tt_content.****stdWrap.innerWrap.cObject = |
>>>>
>>>> The content 141, 81, 119, 162 are content elements within a sysfolder.
>>>>
>>>> Now when I click on any of the LI I need the selected element to have a
>>>> different color. With HMENU and TMENU you can of course do it with ACT.
>>>> But
>>>> how can I do it with this?
>>>>
>>>> Please help!!!
>>>>
>>>> With warm regards,
>>>> Sinu Govind
>>>>
>>>>  ______________________________****_________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.typo3.org
>>> http://lists.typo3.org/cgi-****bin/mailman/listinfo/typo3-****english<http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english>
>>> <http://lists.typo3.**org/cgi-bin/mailman/listinfo/**typo3-english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>>> >
>>>
>>>  ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>


More information about the TYPO3-english mailing list