Hello!
I have created a blog using Couchcms, and in the article template file, I have added this part of code :
It's appearing in the admin panel, and I am able to make the selected option appear wherever I want.
But that's not what I need. I need to be able to list out all the opt_values from the "profile_sujet" editable dropdown, in another dropdown on the front-end, that appears on every pages of the website.
I just need to clone the data inside that "profile_sujet" dropdown that I can see on the backend, into a specific dropdown on the frontend. And If I ever add a value in "profile_sujet", it will be automatically added on both the backend and that dropdown menu on the front-end.
I tried inserting that part of code into the dropdown element :
<cms:show profile_sujet />
But it's not displaying anything. Again, I don't want it to display the selected value, I need it to display all the options in the "profile_sujet" dropdown.
Thanks!
I have created a blog using Couchcms, and in the article template file, I have added this part of code :
- Code: Select all
<cms:editable group='group_main_profile' name="profile_sujet" label="Sujet" opt_values='Attitude | Coaching | Communication non-verbale' type='dropdown'/>
It's appearing in the admin panel, and I am able to make the selected option appear wherever I want.
But that's not what I need. I need to be able to list out all the opt_values from the "profile_sujet" editable dropdown, in another dropdown on the front-end, that appears on every pages of the website.
I just need to clone the data inside that "profile_sujet" dropdown that I can see on the backend, into a specific dropdown on the frontend. And If I ever add a value in "profile_sujet", it will be automatically added on both the backend and that dropdown menu on the front-end.
I tried inserting that part of code into the dropdown element :
<cms:show profile_sujet />
But it's not displaying anything. Again, I don't want it to display the selected value, I need it to display all the options in the "profile_sujet" dropdown.
Thanks!