A few pointers please
10 posts by 4 authors in: Forums > CMS Builder
Last Post: May 15, 2012 (RSS)
By Rewmer - May 9, 2012
Well I got my CSMB installed and up and running in a jiffy, all went very smoothly. Now the hard part - working out how to use it !!! I need to try and work out how CSMB thinks to help me understand how to use it, so to that end Ive done a bit of playing and experimenting and come up with some theories / thoughts
1. Images - Am I right in thinking that when I use an upload field in my section editor, the images uploaded are not uploaded direct to the database, but to a upload folder and a note is made in the database of its location ? Also a thumbnail image is created at the same time ?
2. I am trying to set up a simple "catalog" using a multi record ? . Ive input some stuff into the DB and created my code for insertion into my exsisting cataloge page, question is, do I have to create another page from my site template that acts as the viewer for the details from the first list page ?
If someone could just give me a quick yes / No / idiot, I would be most gratefull. - next issue - lightbox ( if I get that far) [cool]
Re: [Rewmer] A few pointers please
By zip222 - May 9, 2012
Re: [Rewmer] A few pointers please
By rconring - May 9, 2012
You want to be sure you supply the names of the product list page and the product detail page in the Viewers tab of the Section editor. It will then generate the proper PHP code for the list page and the detail page. You need to generate each one separately.
Don't hesitate to post questions on this forum. There is always someone willing to help.
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987
Re: [rconring] A few pointers please
By Rewmer - May 10, 2012 - edited: May 10, 2012
Edit:
Something else has just just occured to me, how do I differentiate what information is displayed on the list page and the detail page ?
Re: [Rewmer] A few pointers please
By rconring - May 10, 2012
The code generator only supplies the functions to access the database and the variables necessary to display the data. You can use as much or as little of the code as necessary to accomplish the task of creating a list or a single page. The _link variable in the list page code contains the URL to the detail page so if you wanted the product name or the product image to link to the detail for that product, you would use $record['_link'] in the statement with $record['product_name'].
Like this ... <a href="<?php echo $record['_link'] ?>"><?php echo $record['product_name'] ?></a>
I have a project to finish this morning but later will try to put together a little sample app for you to get you past the initial learning curve. Once you get a grip on the concepts, the sky is the limit as to what you can accomplish with very little knowledge of PHP and SQL.
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987
Re: [rconring] A few pointers please
By Rewmer - May 10, 2012
I think I am getting it now, I can see this is going to be a very powerful tool.
Re: [Rewmer] A few pointers please
By rconring - May 15, 2012
I will have some time now to help get you started if you still need help. Email me directly from my profile so I can email you any sample code aside from the forum.
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987
Re: [rconring] A few pointers please
By Rewmer - May 15, 2012
Any tips you have would be most welcome.
Re: [Rewmer] A few pointers please
By Damon - May 15, 2012
I just sent you an email with an example.
When you have images appearing in different columns in a html table, one option is to setup different upload fields for each column.
Let me know if you have any questions about this or any other setup questions.
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Damon] A few pointers please
By Rewmer - May 15, 2012