Hi
Is it possible to set a default value for the summary(introtext) so that when we create a new resorce it already has the summary text(this is some css styles and html) in place?
-
☆ A M B ☆
- 24,524 Posts
No, usually common HTML/CSS or other content is put in chunks.
It would be even better to use a TV for this. You can set a default value for it when you create it, then if you want something a little different for any given page it’s easy to edit the TV for that resource.
Thank you for assistance.
The problem is there is some text at the top of the page that will be different for each page(20+ pages and growing), we are using different styles within this area and it needs to be edited.
Is there a way of adding a [*content*2] so there is 2 editable regions within the main editor?
Or can we hard code a default value for the Summary(intortext) using some php? $New_Modx_Summary_Custom = "some code that could be here";
As it is only a text box after all..?
Do you know what files control the editor?
Is there a way of adding a [*content*2] so there is 2 editable regions within the main editor?
This is exactly what Template Variables are for -- creating extra fields.
Once you’ve created the Template Variable, it will show up as an extra field when you edit a document using a template it’s attached to.
You can display its content anywhere on the page using a tag:
Hi
Thanks for the help, that has really helped us out