Page 1 of 1

Need some help with pages

Posted: Thu Nov 29, 2012 8:32 am
by Glasya
Hello,

It is my first time working with cmsms and i'm having some real issue's with the following things.

1) When creating a new page, you have 3 tabs: start, options and preview.
However when i inspect these buttons they have no href and no javascript action. So how do they function as a link/clickable tab?

2) When you are on the options tab, you can select a template, for instance default_text. Once selected it appears a jquery call alters the fields on the start tab and again i cannot find the code that handles this change, nor can i find the code that includes the actual input form on the page. I assume it has something to do with the file editcontent.php found in public_html/admin/

Some help would be much appreciated!

Re: Need some help with pages

Posted: Thu Nov 29, 2012 11:08 pm
by applejack
Don't start messing with the php code or jQuery files you don't need to, this is not Wordpress...

In CMS you can have multiple templates even one for each page if you really wanted to though not a good idea. It is the content blocks in the template which create the form fields when editing a page. You always have to at least have the main content block i.e. {content} after that you can have {content block='leftcolumn' label='Left Column'} {content block='rightcolumn' label='Right Column' WYSIWYG='false'} etc etc Look at the help for Tags > Content > help

Also make good use of global content blocks such as for the head and the footer which you can then place in a template. If using for the head do not include the opening and closing head tags in the global block as these need to be in the template.

Re: Need some help with pages

Posted: Fri Nov 30, 2012 8:43 am
by Glasya
Thank you for you're reply.
Currently i am reading up on the content part you suggested, in the mean time i made a quick illustration of what i am expected to create for my employer.

Image

Re: Need some help with pages

Posted: Fri Nov 30, 2012 5:26 pm
by applejack
Sorry you will have to explain more what exactly you are trying to do.

Re: Need some help with pages

Posted: Fri Nov 30, 2012 7:11 pm
by Glasya
Well i got one step closer, on the backend i perform a query to see if the template_id=26 (the id of the contactpersonen template) if so it displays the tab shown in the image below.

What i need to know now is how i can show a selectbox under that tab (Contactpersonen - TEST).

Re: Need some help with pages

Posted: Sat Dec 01, 2012 5:47 pm
by applejack
For additional field types take a look at CG Content Utilities or Advanced Content modules. There is also an advanced global content module which you might be able to use.

Re: Need some help with pages

Posted: Sat Dec 01, 2012 6:11 pm
by calguy1000
Thread locked..... failure to follow forum rules and provide detailed information.