On a CMSMS page I would like the possibility for my client to add extra fields. for example:
[ + Add item ]
[ input field 1 ]
[ input field 1 ]
[ input field 1 ]
[ textarea 1 ]
if I click again on [ + Add item ] again it should add these fields again.
I hope I was able to explain it clearly.
I wonder if there is a module or some guide to achieve this? There have been many occaisions where I thougt this would be a very good addition to CMSMS.
adding extra content button on page
Re: adding extra content button on page
What exactly would you like to accomplish in this specific case?
Re: adding extra content button on page
Sounds a bit like you want to look at ListIt2? Also known as ListItExtended. Easy way to create nicely formatted lists of things, you're able to set up your own fields.
Re: adding extra content button on page
Let me try to explain again.
I have a template with:
{content block="roof" oneline="true"}
sometimes the client needs to add multiple roofs, I now have to use:
{content block="roof1" oneline="true"}
{content block="roof2" oneline="true"}
{content block="roof3" oneline="true"}
{content block="roof4" oneline="true"}
{content block="roof5" oneline="true"}
{content block="roof6" oneline="true"}
{content block="roof7" oneline="true"}
{content block="roof8" oneline="true"}
However most of the time the client only needs to enter 1 roof, but sometimes they need to add up to 8 roof types. So on default i should have the possibility in my template for the maximum of 8 roof types. (I used 8 in my example but in the actual situation i am facing this is 35)
This would be perfect:
{content block="roof" oneline="true" group="house"}
when adding "group" it automaticly adds a button after the content block [Add extra house]
if adding more items to the same "group" these fields would repeat with the same button.
{content block="roof" oneline="true" group="house"}
{content block="wall" oneline="true" group="house"}
{content block="door" oneline="true" group="house"}
Would listit2 provide the solution to this?
I have a template with:
{content block="roof" oneline="true"}
sometimes the client needs to add multiple roofs, I now have to use:
{content block="roof1" oneline="true"}
{content block="roof2" oneline="true"}
{content block="roof3" oneline="true"}
{content block="roof4" oneline="true"}
{content block="roof5" oneline="true"}
{content block="roof6" oneline="true"}
{content block="roof7" oneline="true"}
{content block="roof8" oneline="true"}
However most of the time the client only needs to enter 1 roof, but sometimes they need to add up to 8 roof types. So on default i should have the possibility in my template for the maximum of 8 roof types. (I used 8 in my example but in the actual situation i am facing this is 35)
This would be perfect:
{content block="roof" oneline="true" group="house"}
when adding "group" it automaticly adds a button after the content block [Add extra house]
if adding more items to the same "group" these fields would repeat with the same button.
{content block="roof" oneline="true" group="house"}
{content block="wall" oneline="true" group="house"}
{content block="door" oneline="true" group="house"}
Would listit2 provide the solution to this?
Re: adding extra content button on page
Yes, one solution would be ListIt2 with categories being your houses. Your items would be roofs. Add a roof, assingn it a category. Set up templates (fairly straightforward) and each house page would show the roofs entered. You could have any number of roofs then, you wouldn't need to be involved.
Re: adding extra content button on page
great, thanks for your help. I will try and figure how to get it done with Listit2
Re: adding extra content button on page
I have looked into ListIt2 quickly without much success, are there any documents / tutorials / guides you can suggest to achieve my goals?
Re: adding extra content button on page
Did you look at the module's help section? ListIt2 has one of the most detailed help areas I have seen.sumpson wrote:I have looked into ListIt2 quickly
I found the best way was to dive in and play with it on a site which you can fiddle around with. Set up a test list of fruits with fields like colour, size etc.
Re: adding extra content button on page
Sounds like Products would also work for this...



