Custom Data

Permalink
Hi there,

Kind of a funny question, and I'm not sure whether c5 is able to do what I want it to do...

I have a site that I've created in drupal already where there's all sorts of custom data added through the use of "CCK". The site has been neglected for a while, and recently updating some modules and drupal for security issues kind of broke things. And to be honest, I don't remember how I managed to glue everything together. :)

What I'm wondering is can you create a custom data set that c5 can use? in my particular example, it is data revolving around dog walking trails, so I have things like "trail difficulty", "trail type" and so on, with different options for each (easy/med/hard, etc).

I really enjoy using c5, but not sure if it's the right solution for something that is as "complex" as that.

I realize I could create a simple template and manually enter in all this information, but I would want to have lists that are sortable and filterable with parameters (ie: show only "easy" trails).

Is this sort of thing possible with c5, and if so, where do I start?

Thanks
Matt

 
ideasponge replied on at Permalink Best Answer Reply
ideasponge
You have several options with c5. You could build a custom addon that let you display and manage this data in various ways. Or you can use Attributes on Users and/or Pages. There is also a CSV table building addon that lets you import variable data and display it on a page.
http://www.concrete5.org/marketplace/addons/csv-displayer/...

Without more information on how you actually intend to use the data you mentioned, it is hard to give you a solid answer.
MMoose replied on at Permalink Reply
Cool, I'll check out the add-on, and look at what's involved with the attributes for users/pages.

I wasn't sure ofthe policy for linking to external sites, so I didn't post it, but here is the site in question:http://www.doggonetrails.com/

I've created a custom "node type", that has custom fields as I mentioned.

I'll check out the attributes option.

Thanks!
ideasponge replied on at Permalink Reply
ideasponge
with a little tweaking you could probably tie the Advanced Google Maps Addon to the CSV addon to make it display your trail in a map. Browse the Marketplace. there are tons of addons that might do the trick and they are all open source so they can be modified.
andrew replied on at Permalink Reply
andrew
Typically, in concrete5 if something is custom but it's primarily presentation-based, and will be used on multiple pages, we create what we call a custom block type. You create an add, edit and view layer for this custom block, and then a custom controller that saves it into the database (although for most you don't even really have to write SQL.) Then you add the custom block type onto your page and it shows up just fine.

Now, if you want to do something more, either programatically, or with search, at the page level, you might want to investigate using custom attributes, which allow you to bind certain bits of custom data (similar to CCK) to the page level, rather than just show it on the page.