* Vivo Gimana cara buat breadcrumb untuk filelist?

Misal http://helpme.wap.sh/folder1/kategori1/artikel1

jadi folder1>kategori1>artikel1

terimakasih :)
2016-04-09 04:10 · (0)
* pichu * Vivo
<div class="phdr"><div xmlns: v="http://rdf.data-vocabulary.org/#"><!--parser:xtscript-->

var $spc=call chr $val=32
var $path= <xt:url type="path" />/
var $len=call strlen $val=$path
var $offset=0

print {{<span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="" typeof="v:Breadcrumb"><a itemprop="url" href="http://YourSite.Com" rel="v:url " property="v:title">Home</a></span>}}

@loop
var $strt = call strpos $haystack=$path;$needle=/;$offset=$offset
var $end= call strpos $haystack=$path;$needle=/;$offset=($strt+1)
var $link=call substr $val=$path;$start=0;$length=$end
var $forlam=call substr $val=$path;$start=($strt+1);$length=($end-$strt-1)
var $forlam= call ucwords $val=$forlam;
var $forlam = call str_replace $subject=$forlam;$search=-;$replace=$spc;

if $forlam == Index 
goto @end
endif

var $spc = call chr $val=32
print $spc»$spc<span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="" typeof="v:Breadcrumb"><a aitemprop="url" href="$link" rel="v:url " property="v:title">$forlam</a></span>

var $offset=($strt+1)
if  $end < ($len-1)
goto @loop
endif

@end
<!--/parser:xtscript--></div></div>

Copy code


edit YourSite.Com =>> Your Site
2016-04-09 06:38 · (1)
* Vivo * pichu Thanks :D
2016-04-09 19:40 · (0)
* Mywapmaster * pichu Richsnippet not valid :(
2016-05-11 18:45 · (0)
* pichu * Mywapmaster edit YourSite.Com =>> Your Site
2016-05-12 04:05 · (0)
* Graham * pichu You can use
href="http://<xt:url type="domain" />"
to make the code generic for any xtgem site
That should also then work for parked domains as well
My version (without external script calls or 'index' links) http://ggnnww.yn.lt/path/to/page/
2016-05-13 01:06 (edited 2016-05-13 01:14 by Graham ) · (1)
* aliefr hay guys, aku mau tanya, cara membuat web xtgem berbasih php gmana yah
2016-07-28 09:31 · (0)
* Vivo * Graham How to replace "_" to space " " ??


Home>blog>karena_because_selalu_usually
To
Home>blog>karena because selalu usually


Thanks for reply
2016-10-25 19:28 (edited 2016-10-25 19:29 by Vivo ) · (0)
* Vivo * aliefr Xtgem membet biasa kg supory php sob
2016-10-25 19:29 · (0)
* Graham * Vivo in my script you add this
var $spc=call chr $val=32
var $linktext=call str_replace $subject=$linktext;$search=_;$replace=$spc

<!--parser:xtscript-->
/* INITIALIZE VARS */ 
var $path= <xt:url type="path" />/
var $offset=0
var $len=call strlen $val=$path
var $button_class= xt_button  xt_text small
var $button_style= padding:0 1px !important;margin:01px !important
/* HOME LINK*/
print <a href="/"><span class="$button_class" style="$button_style">home</span></a>
/* MAIN LOOP START*/
@loop
var $strt = call strpos $haystack=$path;$needle=/;$offset=$offset
var $end= call strpos $haystack=$path;$needle=/;$offset=($strt+1)
var $link=call substr $val=$path;$start=0;$length=$end
var $linktext=call substr $val=$path;$start=($strt+1);$length=($end-$strt-1)

var $spc=call chr $val=32
var $linktext=call str_replace $subject=$linktext;$search=_;$replace=$spc

/* EXIT IF INDEX FILE */
if $linktext == index 
goto @end
endif
/* LINKS */
print  <span class="$button_class" style="$button_style">&raquo;</span><a href="$link"><span class="$button_class" style="$button_style">$linktext</span></a>
/* MAIN LOOP END */
var $offset=($strt+1)
if  $end < ($len-1)
goto @loop
endif
/* END */
@end
<!--/parser:xtscript-->

Copy code
2016-10-25 23:48 (edited 2016-10-25 23:50 by Graham ) · (1)

Online: Guests: 1