adding extra content button on page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

adding extra content button on page

Post by sumpson »

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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: adding extra content button on page

Post by velden »

What exactly would you like to accomplish in this specific case?
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: adding extra content button on page

Post by paulbaker »

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.
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

Re: adding extra content button on page

Post by sumpson »

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?
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: adding extra content button on page

Post by paulbaker »

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.
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

Re: adding extra content button on page

Post by sumpson »

great, thanks for your help. I will try and figure how to get it done with Listit2
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

Re: adding extra content button on page

Post by sumpson »

I have looked into ListIt2 quickly without much success, are there any documents / tutorials / guides you can suggest to achieve my goals?
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: adding extra content button on page

Post by paulbaker »

sumpson wrote:I have looked into ListIt2 quickly
Did you look at the module's help section? ListIt2 has one of the most detailed help areas I have seen.

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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: adding extra content button on page

Post by Dr.CSS »

Sounds like Products would also work for this...
Post Reply

Return to “Modules/Add-Ons”