Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Blog Content Templates
Huh what? We have blog templates. Wait no, this one is different.
I had a request from a user which would be a great idea to see as an evolution in blogs. A content template for a blog post. When adding a new entry rather than a blank area of content in the blog editor fields ... the title would be pre-populated, as would the sub title and a HTML "fragment" lets say is inserted into Alloy or CK Editor. Heck why not even pre-populate some tags for the post and have a pre-determined small image, all the stuff the user rarely uses anyway, having that would highlight the usefulness of tags and meta data.
So rather than "Add an Entry" the user would be given a drop down from that button that said "Blank Entry", "Newsletter", "Serious Post", "Inspirational Post" and so each of those things would have pre populated images, headers and ipsum text in the paragraphs (not to mention blockquotes, we need blockquote for blogs). All this "placeholder" or "templated" content would be changeable by the user once it was inserted into Alloy or CK Editor.
Anyways one of those great suggestions from a user that would otherwise just stay between me and them, now you guys at Liferay have the insight of a user requirement which could add value to blogs. It's so simple, it's brilliant. Add an entry -> What kind of entry to you want to post? And blank content becomes an option rather than the default.
I had a request from a user which would be a great idea to see as an evolution in blogs. A content template for a blog post. When adding a new entry rather than a blank area of content in the blog editor fields ... the title would be pre-populated, as would the sub title and a HTML "fragment" lets say is inserted into Alloy or CK Editor. Heck why not even pre-populate some tags for the post and have a pre-determined small image, all the stuff the user rarely uses anyway, having that would highlight the usefulness of tags and meta data.
So rather than "Add an Entry" the user would be given a drop down from that button that said "Blank Entry", "Newsletter", "Serious Post", "Inspirational Post" and so each of those things would have pre populated images, headers and ipsum text in the paragraphs (not to mention blockquotes, we need blockquote for blogs). All this "placeholder" or "templated" content would be changeable by the user once it was inserted into Alloy or CK Editor.
Anyways one of those great suggestions from a user that would otherwise just stay between me and them, now you guys at Liferay have the insight of a user requirement which could add value to blogs. It's so simple, it's brilliant. Add an entry -> What kind of entry to you want to post? And blank content becomes an option rather than the default.
You mean, I wouldn't need to copy & edit an old Radio Liferay blog article to get all the formatting with the float:right logo, whenever I publish a new episode? And then edit again, because I forgot to edit something from the old text?
Sign me up!
Sign me up!
The use case makes sense to me.
The usage of the word template might be a cause of confusion since we are already use that word for two similar but different purposes:
1) Code Templates (like in Web Content Templates)
2) Page Templates
Regardless of this, we've been discussing lately that the future of blogs might be a re-write based on web content as a backend. If we do this, then it would be possible to leverage Structures which already provide the possibility of setting the default value for its fields to achieve what you propose.
What do you think?
The usage of the word template might be a cause of confusion since we are already use that word for two similar but different purposes:
1) Code Templates (like in Web Content Templates)
2) Page Templates
Regardless of this, we've been discussing lately that the future of blogs might be a re-write based on web content as a backend. If we do this, then it would be possible to leverage Structures which already provide the possibility of setting the default value for its fields to achieve what you propose.
What do you think?
I see two topics here.
Blogs:
We never use the blog. We always use a Webcontent structure called "Blog".
While companies often want to use the term "blog" for marketing reasons, it rarely is actually a blog. Often the articles are not even written by the "authors" and rarely do they enter the articles themselves. Even if an article is written by the given author, it is mailed around, reviewed and only in the end one of the website editors . In the end, often a blog is a "general article" or a special kind of news.
Also, Structures/Template give us more flexibility when rendering the thing. The ability to add metadata e.g. specify the "actual author" is quite useful. And it also helps us in the overview ADTs since we always just need to render webcontent, we don't have to handle blogs and webcontent.
Caveat: There is an existing thing called blogs that confuses editors and we need to hide it or tell them: Don't use that.
Default Content :
I don't think structure default values will cut it. Creating a: "Blank Entry", "Newsletter", "Serious Post", "Inspirational Post" or a Olaf mentioned, a "Radio Liferay" episode, will always create a new "BlogEntry". To use default values in the strucutre, we would need to create multiple structures for that and doing that will be quite a headache from a maintenance point of view. In truth, the editor just wants to add a blog and have some stuff already filled out.
I think that this could be handled by the new applications feature. Instead of having the default editor, I would create a new application "Create Newsletter". The form would be based on the structure, with the ability to move fields around, prefill them, make them required (even if they are not required in the structure), the form wizard could help me categorize/tag it, select related content, ...
Well, I guess, the above process is where you want to go anyway, so I would rather see it there. (Even if I thoroughly dislike the current forms implementation)
Blogs:
We never use the blog. We always use a Webcontent structure called "Blog".
While companies often want to use the term "blog" for marketing reasons, it rarely is actually a blog. Often the articles are not even written by the "authors" and rarely do they enter the articles themselves. Even if an article is written by the given author, it is mailed around, reviewed and only in the end one of the website editors . In the end, often a blog is a "general article" or a special kind of news.
Also, Structures/Template give us more flexibility when rendering the thing. The ability to add metadata e.g. specify the "actual author" is quite useful. And it also helps us in the overview ADTs since we always just need to render webcontent, we don't have to handle blogs and webcontent.
Caveat: There is an existing thing called blogs that confuses editors and we need to hide it or tell them: Don't use that.
Default Content :
I don't think structure default values will cut it. Creating a: "Blank Entry", "Newsletter", "Serious Post", "Inspirational Post" or a Olaf mentioned, a "Radio Liferay" episode, will always create a new "BlogEntry". To use default values in the strucutre, we would need to create multiple structures for that and doing that will be quite a headache from a maintenance point of view. In truth, the editor just wants to add a blog and have some stuff already filled out.
I think that this could be handled by the new applications feature. Instead of having the default editor, I would create a new application "Create Newsletter". The form would be based on the structure, with the ability to move fields around, prefill them, make them required (even if they are not required in the structure), the form wizard could help me categorize/tag it, select related content, ...
Well, I guess, the above process is where you want to go anyway, so I would rather see it there. (Even if I thoroughly dislike the current forms implementation)
Thanks for sharing that information Christoph, it's very useful to hear about your real-world experience.
I don't have any specific proposal for a solution, but we'll keep thinking about it
I don't have any specific proposal for a solution, but we'll keep thinking about it

Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™