The customer has created a view called short
and he wants to call it as http://127.0.0.1:8080/cms/render/(.......)/my-first-news.short.html
How to call the short view?
The solution is to create a content template for this view but the main thing is that the system name of this content template should be the same as the view. In other words, the system name of the content template must be equal to "short" in the customer's case.
However, this is not mandatory to give the same name but you still need to provide the system name of the content template in the URL.
Here is an example
You can create two views:
test
(default one)detail
(The detail view)You can create two content templates
vuesimple
to call the default view: testdetails
to call the view: detailAt the runtime, you have to call:
http://localhost:8080/cms/render/default/en/sites/mySite/home/pagecontent/test.vuesimple.html
http://localhost:8080/cms/render/default/en/sites/mySite/home/pagecontent/test.details.html
You can notice that the URL is based on the content template system name for the two views:
vuesimple
details