* Graham * Waplocus I have altered the breadcrumbs script you posted with a counter to add a id parameter to the links
do you want that actual markup as the output
2017-11-03 23:47 (edited 2017-11-04 00:14 by Graham ) · (0)
* Waplocus * Graham Thanks sir, i'll d prefer the actual markup where all Links will be wrap by a <div class="RolWrap">then all inactive link will have RolCont1 id and the active/current link will be only 1 to have the RolCont2... i want the $button_class and $button_style remove e.t.c and also the home e.g i want something of this nature
<div class="RolWrap"> »
 <a href="/Devices" id="RolCont1"> Devices </a>
 » <a href="/Devices/Java" id="RolCont2"> Java </a>
</div>

Copy code
... Thanks.
2017-11-04 01:01 (edited 2017-11-04 01:07 by Waplocus ) · (0)
* Graham * Waplocus re edited script
2017-11-04 02:14 · (0)
* Waplocus * Graham Thanks very much sir...
2017-11-04 10:39 · (0)
* Waplocus * Waplocus When it becomes a Root Folder .. e.g "/Devices", it does not take the "RolCont2" as the active path...
2017-11-04 14:05 · (0)
* Waplocus * Waplocus Sir, the code i av in a file. i'm trying to xt inclue the file into a page but not working...
<xt:include file="<!--parser:xtscript-->
var $path= <xt:url type="path" />
var $lastslash = call strrpos $haystack=$path;$needle=/
var $trimmedpath = call substr $val=$path;$start=0;$length=$lastslash
print $trimmedpath/SOX/HeadTag
<!--/parser:xtscript-->" />

Copy code
2017-11-04 18:10 · (0)
* Waplocus * Graham Please sir how can i print the path name before(folder name) the index e.g in "/Education/index" print "Education" e.g in /Education/JAMB/index print "JAMB"
<<!--parser:xtscript-->
var $spc=call chr $val=32
var $path=<xt:url type="path">
var $pos = call strrpos $haystack=$path; $needle=/
var $path = call substr $val=$path; $start=0;$length=$pos
var $pos = call strrpos $haystack=$path; $needle=/
var $name = call substr $val=$path; $start=($pos+1)
var $name = call str_replace $subject=$name; $search=_ ; $replace=$spc 
print $name
<!--/parser:xtscript-->

Copy code
...THANKS.
2017-11-05 02:54 (edited 2017-11-05 13:20 by Graham ) · (0)
* Graham * Waplocus
1/ looking at it
2/ includes are done before xtscript so it won't work
3/ if this is just so you can mark it for css don't bother with id use last-of-type
.RolWrap a:last-of-type {
    background: #ff0000;
}

Copy code
id is meant to be unique to that element anyway using the same id more than once on a page can cause issues
2017-11-05 09:36 (edited 2017-11-05 09:39 by Graham ) · (0)
* Waplocus * Graham Ok, i'll be waiting...
2017-11-05 12:53 · (0)
* Graham * Waplocus 1/ code edited
2017-11-05 13:21 · (0)

Online: Guests: 1