using the value of a variable inside another one

More
11 years 4 months ago #38125 by rottenberg
Hello,
I have 2 fields :
    - field 1 :
video_youtube (contains a youtube URL
- Field 2 : bande_son_youtube (contains an URL with transcode the youtube video into a MP3 file)

The field 2 is an hidden field which contains in field specific properties - Value creation the following text as default value :
Code:
{qrcodeslocal}http://convert2mp3.net/c-mp3.php?url={{video_youtube##0}}{/qrcodeslocal}

({qrcodeslocal} is a plugin which transforms an URL into a QR code.


I get in public access the QR code but the url is not replaced by the value of video_youtube.
I only get as URL the following text : {{video_youtube##0}}


How can I use the value of youtube_video inside bande_son_youtube

thank you very much for help

Best regards
Michel ROTTENBERG

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

More
11 years 4 months ago #38127 by ggppdk
Hello,
Field 1: video_youtube is a text field?
and Field 2 is also a text field right ?

where did you put:

{{video_youtube##0}}

you need to put it a prefix or suffix value parameter or in opentag / closetag parameters


-- 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
11 years 4 months ago #38129 by rottenberg
Thank you very much.

this field is a hidden field. So I have put [yts]{qrcodeslocal} convert2mp3.net/c-mp3.php?url={{video_yo...e##0}}{/qrcodeslocal }[/yts] inside the
field specific properties-value creation
to get it as default value.

If the specific properties-value creation remains empty I don't get the field in the public page.

So I have put [yts] (the beginning of the field content - tag used in nonumber rereplacer) and the remaining part of the field in the suffix.

Now it's working.

In a future value of FC could it be possible to get the {{filed##0}} executed also inside the default value and not only in the prefix/suffix parameter.

best regards

Michel

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.289 seconds
Save
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