New module ;)
Permalink
Hi All,
I want to migrate a module I wrote for our old CMS system into C5, I have the db structure, and I have the plain PHP. Are there any specific tutorials or guides that are around to help?
It's a basic portfolio module but I use it on a few site that potentially may be upgrading.
It stores main image and 4 sub images
Title
Description
Secondary Description
Specific Description (I use this to cover a mulitude of sins)
Date
Then I have seperate tables to store categories and record links.
Any help would be great ;)
I want to migrate a module I wrote for our old CMS system into C5, I have the db structure, and I have the plain PHP. Are there any specific tutorials or guides that are around to help?
It's a basic portfolio module but I use it on a few site that potentially may be upgrading.
It stores main image and 4 sub images
Title
Description
Secondary Description
Specific Description (I use this to cover a mulitude of sins)
Date
Then I have seperate tables to store categories and record links.
Any help would be great ;)
you can make a dashboard page generate front end pages,
So keep my code and plug it in as a single page?
yeah
Cool, I never thought of doing it that way before.
I still need to learn how to do the module so that I can add in new items to the database but maybe a custom block module would donut and just flatten out the db structure.
Many thanks
Mat
I still need to learn how to do the module so that I can add in new items to the database but maybe a custom block module would donut and just flatten out the db structure.
Many thanks
Mat
Normally I would say that this is the wrong approach, as the C5 architecture revolves around pages and most of the built-in tools that you want to take advantage of assume that. Generally I like to make a page type for this kind of data, then each "record" is really just a new page that's added to the site. A top-level index page can have a Page List block on it to show a listing of all of those pages.
But in your case this might not be appropriate because you have so much meta-data (5 images, various descriptions, etc.). Although I'm not sure if entering it into a dashboard page that created other pages would really be that much better than entering the meta-data into the custom attributes dialog when first creating the page.
What you might want to consider is somehow making that information (the 5 images and the various descriptions) actual content on a page, and use something like the Page List Teasers custom template (http://www.concrete5.org/marketplace/addons/page-list-teasers... ) to display that content in the "index" list (without users having to enter the data twice -- once in the custom attributes and once on the page itself). You'll probably need to customize the template a bit, but I think in the long term this might be a better fit for a C5 site (IMHO).
But in your case this might not be appropriate because you have so much meta-data (5 images, various descriptions, etc.). Although I'm not sure if entering it into a dashboard page that created other pages would really be that much better than entering the meta-data into the custom attributes dialog when first creating the page.
What you might want to consider is somehow making that information (the 5 images and the various descriptions) actual content on a page, and use something like the Page List Teasers custom template (http://www.concrete5.org/marketplace/addons/page-list-teasers... ) to display that content in the "index" list (without users having to enter the data twice -- once in the custom attributes and once on the page itself). You'll probably need to customize the template a bit, but I think in the long term this might be a better fit for a C5 site (IMHO).
Jordanlev,
Thank you. I think that would be perfect. It's for our own portfolio so I want to be able to add images, thumbnails etc and pull them out - this seems like the easiest way.
Thank you
-----Original Message-----
From: Concrete5 Community [mailto:discussions@concretecms.com]
Sent: 24 April 2011 19:18
To: info@r1creative.co.uk
Subject: New module ;): New module ;)
Thank you. I think that would be perfect. It's for our own portfolio so I want to be able to add images, thumbnails etc and pull them out - this seems like the easiest way.
Thank you
-----Original Message-----
From: Concrete5 Community [mailto:discussions@concretecms.com]
Sent: 24 April 2011 19:18
To: info@r1creative.co.uk
Subject: New module ;): New module ;)
This add on is worth mentioning:
http://www.concrete5.org/marketplace/addons/dojo-page-filter/...
Not what you are looking to do, but similar in topic.
http://www.concrete5.org/marketplace/addons/dojo-page-filter/...
Not what you are looking to do, but similar in topic.