Jump to content


Custom field in database?


  • You cannot reply to this topic
6 replies to this topic

#1 Muneeba

    Etomite Forum Newbie

  • Member
  • 1 posts

Posted 03 June 2010 - 12:19 PM

Hi,

I would like to add email address field for each of the page just like we have pagetitle and longtitle, is it possible to add a new field which will be populated throughout the CMS?

Please help.

Thanks

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 03 June 2010 - 08:18 PM

It's not that simple with the current code base... While adding a field into the database isn't a big problem, modifying the manager/actions/dynamic/mutate_document_static.action.php and manager/processors/save_content.processor.php would also be required... And without checking the parser, index.php, I can't say whether modifications would also be required there...

#3 Rickyx

    Etomite Forum Newbie

  • Member
  • 21 posts

Posted 25 August 2011 - 07:57 PM

I'm interested in the same things...basically to provide mantainers at least 5 different field like description one.
Do you think is a big work?

And more... would this require to modify the sources and make a new install (since tables are populated during install...)?

Thank you,
Ricky

ps. I can't find: manager/actions/dynamic/mutate_document_static.action.php. It is maybe mutate_content.dynamic.action.php ?

#4 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 25 August 2011 - 09:35 PM

View PostRickyx, on 25 August 2011 - 07:57 PM, said:

I'm interested in the same things...basically to provide mantainers at least 5 different field like description one.
Do you think is a big work?

And more... would this require to modify the sources and make a new install (since tables are populated during install...)?

Thank you,
Ricky

ps. I can't find: manager/actions/dynamic/mutate_document_static.action.php. It is maybe mutate_content.dynamic.action.php ?

What you have in mind would require a lot of work... You would need to modify multiple files, as mentioned, the installer if you intend to do multiple installs, as well as potential changes to be able to call those new fields into documents unless it would only be used by snippets...

Yes, "dynamic" instead of "static"... All dynamics are in the dynamic directory and statics are in the static directory...

#5 Rickyx

    Etomite Forum Newbie

  • Member
  • 21 posts

Posted 29 August 2011 - 10:01 AM

View PostRalph, on 25 August 2011 - 09:35 PM, said:

What you have in mind would require a lot of work... You would need to modify multiple files, as mentioned, the installer if you intend to do multiple installs, as well as potential changes to be able to call those new fields into documents unless it would only be used by snippets...

Yes, "dynamic" instead of "static"... All dynamics are in the dynamic directory and statics are in the static directory...

Ok, I'll not dig in to this. The only way to achieve this is using sub-documents: this is specially useful for not technical maintainers.

Thank you,
RIcky

#6 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 29 August 2011 - 03:39 PM

What is the intended purpose of these new data fields that you are looking to include in documents...??? Language...??? Pricing...??? You might be better off considering a custom data interface if you are looking to manage inventory or store items... I have written many custom interfaces, which is one of Etomites strengths...

#7 Rickyx

    Etomite Forum Newbie

  • Member
  • 21 posts

Posted 13 December 2011 - 12:08 PM

Long time passed, I reopen the post.

Yes, custom interface is what I need.
I have completed this website www.stiloarchitetti.it .
Is still needed some expert tweaking to put a new work in the gallery (lavori). Having the possibility to insert custom field will make the website totally manageable my the architects.

There is some docs about custom interfaces or some examples?
Some deeper than: http://www.etomite.c...data-interface/

Thank you Ralph,
really precious help.
Rickyx





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users