Hello all!
Is it possible to use a custom route conditionally.
What I am trying to do is:
I have a button (using anchor tag) to create a department which is set to
This works properly and sends the user to the create department form as:
Not the button i mentioned above is visible on this create view also since it is in the header.html snippet. I want to be able to show it on the list view but not on the create view.
Something like:
so that the button is shown on the list view only but not on the create view.
Is this possible?
Regards,
GenXCoders (Priya)
Is it possible to use a custom route conditionally.
What I am trying to do is:
I have a button (using anchor tag) to create a department which is set to
- Code: Select all
<cms:route_link 'create_dept' />
This works properly and sends the user to the create department form as:
http://localhost/projectname/department.php?q=create
Not the button i mentioned above is visible on this create view also since it is in the header.html snippet. I want to be able to show it on the list view but not on the create view.
Something like:
- Code: Select all
<cms:if "<cms:route_link 'list_dept' />">
<a href="<cms:route_link 'create_dept' />">
<i class="fa fa-plus"></i> Add Department
</a>
</cms:if>
so that the button is shown on the list view only but not on the create view.
Is this possible?
Regards,
GenXCoders (Priya)