Jump to content


[Resolved]Submenu doesn't show..


  • This topic is locked This topic is locked
10 replies to this topic

#1 burn

    Etomite Forum Newbie

  • Member
  • 29 posts

Posted 27 March 2008 - 10:46 AM

Hi all,

Etomite configuration:
when changing site id from 1 (= id default number) to let's say 54 (= id number of my custom start site) the submenu will not get loaded, source code:

[...]
<div id="submenu"></div> [...]

As one can see, it stays empty, no submenu, how come? Anyone having (had) that?

Thanks in advance,
burn

Forgot: when using the Mollio menus!

#2 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 27 March 2008 - 10:48 AM

Hmm. have you also changed the id of the menu base?

#3 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 27 March 2008 - 01:12 PM

Sounds like the snippet call(s) is/are still pointing to the old initial start page document id... It's not a simple matter of changing the site start in your Etomite configuration... Well, if could be if the snippet was written to use $etomite->config['site_start'] but I don't know of any that use this method...

#4 burn

    Etomite Forum Newbie

  • Member
  • 29 posts

Posted 27 March 2008 - 06:24 PM

View PostDean, on Mar 27 2008, 11:48 AM, said:

Hmm. have you also changed the id of the menu base?

Menu base, menu base... erm, no i don't think so, please enlighten!

#5 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 27 March 2008 - 06:52 PM

Look in your template, and it should have an id assigned to the menu?

#6 burn

    Etomite Forum Newbie

  • Member
  • 29 posts

Posted 27 March 2008 - 07:04 PM

View PostRalph, on Mar 27 2008, 02:12 PM, said:

Sounds like the snippet call(s) is/are still pointing to the old initial start page document id... It's not a simple matter of changing the site start in your Etomite configuration... Well, if could be if the snippet was written to use $etomite->config['site_start'] but I don't know of any that use this method...

Sorry, only now, just now, after i'd already replied to Dean, i got it, i understood the hint, yippi!
It was $etomite->config['site_start'] in the MollioSecondaryMenu, after i changed it to 54...
Thank you, Ralph, seems i'm the exception :)

Please let me ask one more question!
As you might remember i'm not much of a gienuis progremor, but i did at least manage to code some php in this very project of mine that i'm busy converting to your much admired CMS (*flatterflatter* no but really, i love it!) and now i've come to a halt because i cannot think of an approach on how to implement coded parts from "outside" into Etomite.

I wonder how i get my code parsed by Etomite, does that help?! :blush:
Well then, have a nice one and until later hopefully.
Cheers, burn

Edited by burn, 27 March 2008 - 07:06 PM.


#7 burn

    Etomite Forum Newbie

  • Member
  • 29 posts

Posted 27 March 2008 - 07:11 PM

View PostDean, on Mar 27 2008, 07:52 PM, said:

Look in your template, and it should have an id assigned to the menu?


If i were using the Mollio stuff like this in my template:

[...]
<div id="hauptnavi">[[MollioMainMenu]]</div>
</div>
<div id="trick17">
<div id="faux3">
<div id="subnavi">[[MollioSecondaryMenu]]</div>
[...]

...would that explain anything? Otherwise i'm not quite getting it :Nerd:

Edited by burn, 27 March 2008 - 07:12 PM.


#8 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 27 March 2008 - 09:00 PM

[[MollioMainMenu?id=54]]

the ? starts the snippet call (parameters being passed to the snippet) then the variable name 'id' and the variable value '54'

Doing this will send the variable $id=54 for use throughout the snippet.

#9 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 28 March 2008 - 12:25 AM

View Postburn, on Mar 27 2008, 03:04 PM, said:

<<<SNIP>>>
i cannot think of an approach on how to implement coded parts from "outside" into Etomite.

I wonder how i get my code parsed by Etomite, does that help?! :blush:

Do you want to write external PHP scripts that Etomite will use...??? I do this all the time during snippet development... Because I develop on my local server I can work quicker by coding in Kate... I can make a code change, save, and then bounce into Firefox and refresh to see the changes... While this is how I use the method I'll describe next, the same method can be used for any Etomite snippet code... This method will not work for just any PHP script as has been covered elsewhere here in the forums...

// PHPinclude
 if(!isset($file) || ($file == "") ) return "No file specified.";
 
 ob_start();
 include($file);
 $inc = eval(ob_get_contents());
 ob_end_clean();
 return $inc;

You can use this snippet by placing the snippet call, [!PHPinclude?file=filename.ext!], in your template, document, or chunk... You can also call it from another snippet using $output .= $etomite->runSnippet($snippetName="PHPinclude",$params=array('file'=>'filename.ext')); just as easily...

Hope this helps...

#10 burn

    Etomite Forum Newbie

  • Member
  • 29 posts

Posted 28 March 2008 - 10:49 AM

View PostCris D., on Mar 27 2008, 10:00 PM, said:

[[MollioMainMenu?id=54]]

the ? starts the snippet call (parameters being passed to the snippet) then the variable name 'id' and the variable value '54'

Doing this will send the variable $id=54 for use throughout the snippet.

Thanks, i'm getting there sbs :)

#11 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 28 March 2008 - 01:47 PM

Support Issue Resolved!

The issue this topic was opened for has been resolved, and we look forward to helping you in the future. If you need further assistance, please open a new topic.

This topic will now be marked as Resolved. If you are satisfied with the support provided here at Etomite (or just appreciate the service we provide), you may want to make a donation to help cover forum and server costs in order to help this quality support continue. If you wish to donate, click Here





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users