I want to access the WebContent-Title from the velocity Template - liferay

Something like this
$Title.getData()
or
$title.getData()
don't work.

Use $reserved-article-title.
Also see this Liferay's wiki for complete reference.

Related

Include statement in pug/jade

I want to use a variable provided from my CMS to reference an include template like this:
extends layout
include layouts/#{data[0].fields.layout}.pug
This just looks for layouts/#{data[0].fields.layout}.pug rather than what I wan, e.g. main.pug. Is there a way to do this?
Unfortunately, this is not possible at the moment. Dynamic includes are currently not supported by Pug (see this SO answer and this Github issue).

Using prevNext Modx Addon

I need to display previous and next resource with tv in one parent using this addon in modx
http://modx.com/extras/package/prevnext
But there is some simple documentation, and i can see it has a lot of options, is it posible that someone can show me simple example of tlp.
https://modx.com/extras/package/prevnext shows clear description and parameters.
[[!prevNext]]
Use pdoNeighbors (part of pdoTools) - it has better documentation and examples.

OrchardCMS - How to make an inline blog

I am fairly new to OrchardCMS, I am trying to make an inline blog, something similar to http://carsquare.com/Content/CarReviews
Any idea how I can achieve this using standard blog functionality, or do I need to custom write the module?
Thanks
I think the Orchard Blog looks like that more or less. You can install a theme, that will get you a step closer. And then maybe change the Page views. Just enable the shapetracing module and have a look around.

What's the recommended approach for hierarchical URLs in Orchard?

I'd like to have a hierarchical URL structure in my site. Something on these lines:
tutorials
javascript
jquery
There should be a page at each level (tutorials, tutorials/javascript and tutorials/javascript/jquery). Obviously, using Taxonomies would help me organize my content in this manner, but how do I get Autoroute URLs generated for this scenario?
Bertrand Le Roy made a comment on this SO answer about using taxonomy terms as pages but it still doesn't seem to create the right URL structure for me. Am I missing something? Is there something specific I need to configure or enable to make this happen?
Are there any other approaches I can look at?
I was thinking of specifying the default route as something like {Content.Fields.Page.TaxonomyName}. It appears that this isn't really possible right now according to this bug report.
Here's an approach that seems to work without having to use taxonomies:
I added a Content Picker field called ParentPage to the Page content type and updated the Page's Autoroute default to
{Content.Fields.Page.ParentPage.Content.Path}/{Content.Slug}
Now in each page I get to pick what the parent page is and the URL is constructed how I expect it. From what I remember of working with WordPress, I think this is pretty close to how it allows you to do this parent page thing, too.

Bug template in Bugzilla

Is there any way to enforce a template in Bugzilla to guide users fill in bugs descriptions ?
Actually, i'd like to put some markup texts in the bug description field and avoid the creation of custom fields.
I've installed version 3.2rc1.
Indeed, just check ../enter_bug.cgi?format=guided , which forms an example of the template feature. Half the work is already done for you.
The mechansism described under 6.2.5 Particular Templates (under the section called bug/create/create.html.tmpl and bug/create/comment.txt.tmpl) works pretty well for us. Even though you say you don't want to create custom fields, adding some arbitrary HTML is easy enough.

Resources