Foren

Page templates validation

Madhuri Sharma, geändert vor 12 Jahren.

Page templates validation

Junior Member Beiträge: 50 Beitrittsdatum: 19.10.11 Neueste Beiträge
Hello,
Everyday I want to do validation on page template please tell me how is possible.


Thanks
Madhuri
thumbnail
Nagendra Kumar Busam, geändert vor 12 Jahren.

RE: Page templates validation

Liferay Master Beiträge: 678 Beitrittsdatum: 07.07.09 Neueste Beiträge
what kind of validation, can you elaborate more on requirement
Madhuri Sharma, geändert vor 12 Jahren.

RE: Page templates validation

Junior Member Beiträge: 50 Beitrittsdatum: 19.10.11 Neueste Beiträge
Hello,
The user may select one of the templates from the displayed list for deletion. Actor selects the template which is not being used by any of the sites.User would be able to delete the selected template by clicking the Delete button.If user chooses to delete the selected template, the System would respond with the message, “ Do you wish to delete the selected template?”. If user confirms it, the system would delete the template and respond back with the message, ”The selected portal page template was deleted successfully””



Thanks
Madhuri
thumbnail
Sagar A Vyas, geändert vor 12 Jahren.

RE: Page templates validation

Liferay Master Beiträge: 679 Beitrittsdatum: 17.04.09 Neueste Beiträge
Madhuri Sharma:
Hello,
The user may select one of the templates from the displayed list for deletion. Actor selects the template which is not being used by any of the sites.User would be able to delete the selected template by clicking the Delete button.If user chooses to delete the selected template, the System would respond with the message, “ Do you wish to delete the selected template?”. If user confirms it, the system would delete the template and respond back with the message, ”The selected portal page template was deleted successfully””



Thanks
Madhuri


Hi Madhuri,

Correct me if I am getting wrong here.

You need confirmation box before deleting Page Template ?


Thanks,
Sagar Vyas
Madhuri Sharma, geändert vor 12 Jahren.

RE: Page templates validation

Junior Member Beiträge: 50 Beitrittsdatum: 19.10.11 Neueste Beiträge
Hello,
I want this when i add the template on the liferay.com page on the header portlet than i want to delete for click on the cross than i want that confirmation box.



Thanks
Madhuri
thumbnail
Sagar A Vyas, geändert vor 12 Jahren.

RE: Page templates validation

Liferay Master Beiträge: 679 Beitrittsdatum: 17.04.09 Neueste Beiträge
Madhuri Sharma:
Hello,
I want this when i add the template on the liferay.com page on the header portlet than i want to delete for click on the cross than i want that confirmation box.
Thanks
Madhuri


Hi Madhuri,

When you use word like Page Template Two things pop up in my mind
1) Page of Community
2) Page Template - One which is available in Control panel.

Would you please clarify which one you are talking about.

Thanks,
Sagar Vyas
thumbnail
Nagendra Kumar Busam, geändert vor 12 Jahren.

RE: Page templates validation

Liferay Master Beiträge: 678 Beitrittsdatum: 07.07.09 Neueste Beiträge
Hi Sagar,

She is talking about Page Templates section of Control Panel
Madhuri Sharma, geändert vor 12 Jahren.

RE: Page templates validation

Junior Member Beiträge: 50 Beitrittsdatum: 19.10.11 Neueste Beiträge
Hello Sagar,
Nagendra is right i am talking about Page Templates section of Control Panel .



Thanks
Madhuri
thumbnail
Nagendra Kumar Busam, geändert vor 12 Jahren.

RE: Page templates validation

Liferay Master Beiträge: 678 Beitrittsdatum: 07.07.09 Neueste Beiträge
Hi Madhuri,

You should understand the relationship between pages & page templates properly.

Page creation is a one time activity with respect to page templates. Once page is created there will be no relation between created Page & Page Template technically - It will consider only present Page Template configuration whenever we are creating the page


Even if you add/delete portlets from the page template configuration it won't effect existing pages which are created using this page template. It will effect only on the new pages we are going to create using this page template


Please correct me liferay experts if i am going in wrong direction

Thanks,
- Nagendra Kumar
thumbnail
Puneet Upadhyay, geändert vor 12 Jahren.

RE: Page templates validation

Regular Member Beiträge: 234 Beitrittsdatum: 22.10.11 Neueste Beiträge
Hi Nagendra !!
I agree with you but i think she has different requirement.

According to me she want to validate the page template in the way that when any user wants to delete the specific page template from control panel , at that time if that page template is used in some pages then that page template should not be deleted. It needs to show a validate message that "This page template is in use. It can not be deleted ".

I think she is unable to describe all her requirements.
am i right madhuri???

Thanks
Puneet Upadhyay
thumbnail
Nagendra Kumar Busam, geändert vor 12 Jahren.

RE: Page templates validation

Liferay Master Beiträge: 678 Beitrittsdatum: 07.07.09 Neueste Beiträge
Hi Puneet,

I got what she is looking for.

Please see my comment

Once page is created there will be no relation between created Page & Page Template technically


There is no way i think we can find out later (once page is created) this page template used by these pages

Thanks,
- Nagendra Kumar
thumbnail
Puneet Upadhyay, geändert vor 12 Jahren.

RE: Page templates validation

Regular Member Beiträge: 234 Beitrittsdatum: 22.10.11 Neueste Beiträge
Ok Nagendra !!!

But any solution for her problem?? I still did not find the solution for this. emoticon