using the content of a field in another of the same article

More
12 years 4 months ago #32909 by rottenberg

1) I have found that opening and closing text in date field are not working properly.(I have to report it as bug)


There is also a problem in 'Opening/closing text for Field' fields : In Rereplacer the tags I use are quoted with '{}' {tag}...{/tag}. the {} cannot be used there : where registring the data you loose all options of the field.
I have replaced {} by []. It's working without any problem.

The bug appears only in 'opening/closing text for fields'. In prefix/suffix text for each value, {} are working normally.


best regards
Michel

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #32910 by brandonking
You are right, I have also tried braces but all setting get back to default. I have other problem is that span tags are gone when I use rereplacer, so I have to add span tags in Replace. Have you got this problem as well?

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #32912 by rottenberg
No I have not got this problem.

Have you understood how to us Rereplacer 'Regular expression' way :

for instance in the source you get this {tag}lorem ipsum{/tag}

in rereplacer you need to enter : \{tag\}(.*?)\{/tag\}

then in the replace field you need to begin your php with :

$parm = stripslashes('escape\1/escape');

in $parm you'll get : lorem ipsum.

You do what's you need on $parm in php and generally you finish by
echo $parm;


Sometime in the php I add the <span> tag manually.


hope it's usefull

best regards
Michel

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #32916 by brandonking
Hello Michel,

Please read this.
flexicontent.org/forum/index.php?f=29&t=5732&rb_v=viewtopic

I am not too sure which plugin causes {} problem.

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #32929 by ggppdk
All field values of the item are available inside the function that create the field , so i have add -raw- value replacement (has almost zero cost) using replacements (for prefix value text , suffix value text, open field text, close field text) like:

{{fieldname##nn}}
or
{{fieldname##nn##propertyname}}

e.g. for single property fields like text,date for value 0 of the field use:
{{mytxtfield19##0}}

e.g. for mulit-property fields like weblink for value 0 and property link of the field, use:
{{myweblinkfield20##0##link}}

Will be in final

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #33958 by brandonking
Hello,

ggppdk wrote: All field values of the item are available inside the function that create the field , so i have add -raw- value replacement (has almost zero cost) using replacements (for prefix value text , suffix value text, open field text, close field text) like:

{{fieldname##nn}}
or
{{fieldname##nn##propertyname}}

e.g. for single property fields like text,date for value 0 of the field use:
{{mytxtfield19##0}}

e.g. for mulit-property fields like weblink for value 0 and property link of the field, use:
{{myweblinkfield20##0##link}}

Will be in final

Regards


Is this feature included in r1645?

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.079 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save