[Resolved]Submenu doesn't show..
#1
Posted 27 March 2008 - 10:46 AM
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
Posted 27 March 2008 - 10:48 AM
#3
Posted 27 March 2008 - 01:12 PM
#5
Posted 27 March 2008 - 06:52 PM
#6
Posted 27 March 2008 - 07:04 PM
Ralph, on Mar 27 2008, 02:12 PM, said:
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?!
Well then, have a nice one and until later hopefully.
Cheers, burn
Edited by burn, 27 March 2008 - 07:06 PM.
#7
Posted 27 March 2008 - 07:11 PM
Dean, on Mar 27 2008, 07:52 PM, said:
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
Edited by burn, 27 March 2008 - 07:12 PM.
#8
Posted 27 March 2008 - 09:00 PM
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
Posted 28 March 2008 - 12:25 AM
burn, on Mar 27 2008, 03:04 PM, said:
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?!
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
Posted 28 March 2008 - 10:49 AM
Cris D., on Mar 27 2008, 10:00 PM, said:
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
Posted 28 March 2008 - 01:47 PM
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


This topic is locked








