strip/chop characters

basic functions and we:tags
ikbenivo

strip/chop characters

Beitragvon ikbenivo » Mi 28. Dez 2005, 17:46

Hi
I've created a breadcrumb system by using
Code: Alles auswählen
<we:path index="index.php,index.html" field="location" home=" " doc="top" separator=" » " />
That works fine, the only thing I don't like is the extension of the file at the end of the breadcrumb. For example:

» ISAnet » organisatie » verslagen.php

Is it possible to remove the extension (.php)? I know php has some sort of chop function (rtrim) but I don't know how to use that in combination with the webEdtion tags.

Thanks in advance

Ralf Pospiech

Beitragvon Ralf Pospiech » Mo 2. Jan 2006, 13:46

Hello Ivo,

the documents should contain a field "location" is this field included, we:path will show the content of this field, is it not included in the file, we:path will show the document name with extension.

ikbenivo

Beitragvon ikbenivo » Mo 2. Jan 2006, 17:45

thanks.
That worked.


Zurück zu „Creating templates“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 4 Gäste