OS Property support center
How to create new sub page?
- Kenneth Pabon
-
Topic Author
- Offline
- New Member
-
Less
More
9 years 9 months ago #67367
by Kenneth Pabon
KennethRules | Greenhouses
How to create new sub page? was created by Kenneth Pabon
I wanted to create thank you page for each property.. right now you have this..
get-directions/(property-name)
to be exact...
demo.fastblvd.net/goodmanrealty/site2/in...nal-high-school.html
demo.fastblvd.net/goodmanrealty/site2/in...nt-sales/properties/ get-directions/lake-erie-international-high-school.html
I wanted to have like this..
demo.fastblvd.net/goodmanrealty/site2/in...nt-sales/properties/ thank-you/lake-erie-international-high-school.html
how can I do this? please advice.. thank you
get-directions/(property-name)
to be exact...
demo.fastblvd.net/goodmanrealty/site2/in...nal-high-school.html
demo.fastblvd.net/goodmanrealty/site2/in...nt-sales/properties/ get-directions/lake-erie-international-high-school.html
I wanted to have like this..
demo.fastblvd.net/goodmanrealty/site2/in...nt-sales/properties/ thank-you/lake-erie-international-high-school.html
how can I do this? please advice.. thank you
KennethRules | Greenhouses
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 9 months ago #67371
by Mr. Dam
Replied by Mr. Dam on topic How to create new sub page?
Hi Keneth,
If you want to change the word "get-direction" in the url, please follow these steps
1. Open file: components > com_osproperty > router.php
2. Find
and change
Thanks
Dam
If you want to change the word "get-direction" in the url, please follow these steps
1. Open file: components > com_osproperty > router.php
2. Find
Code:
$segments[] = JText::_('OS_GET_DIRECTIONS');
and change
by another words you want.OS_GET_DIRECTIONS
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Kenneth Pabon
-
Topic Author
- Offline
- New Member
-
9 years 9 months ago #67372
by Kenneth Pabon
KennethRules | Greenhouses
Replied by Kenneth Pabon on topic How to create new sub page?
hello, but I don't want to change it, I wanted to create new one.. is that possible?
KennethRules | Greenhouses
Please Log in or Create an account to join the conversation.
- Kenneth Pabon
-
Topic Author
- Offline
- New Member
-
9 years 9 months ago #67373
by Kenneth Pabon
KennethRules | Greenhouses
Replied by Kenneth Pabon on topic How to create new sub page?
I manage to create the url...
demo.fastblvd.net/goodmanrealty/site2/in...-sale-leaseback.html
now how to create the page with just have static text like..
Thank you text on page?
Please check the attachment, i hope this is real quick task..
demo.fastblvd.net/goodmanrealty/site2/in...-sale-leaseback.html
now how to create the page with just have static text like..
Thank you text on page?
Please check the attachment, i hope this is real quick task..
KennethRules | Greenhouses
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 9 months ago #67374
by Mr. Dam
Replied by Mr. Dam on topic How to create new sub page?
Hi,
Unfortunately, OS Property doesn't support the static page for this each property. To add new page for that purpose, you need to hack into core of OS Property to below works
1. Add function to show the static text
2. Add link into Property details page
3. Modifying router file of component
If you don't know about Joomla PHP coding, it is quite complicate to implement it.
Thanks
Dam
Unfortunately, OS Property doesn't support the static page for this each property. To add new page for that purpose, you need to hack into core of OS Property to below works
1. Add function to show the static text
2. Add link into Property details page
3. Modifying router file of component
If you don't know about Joomla PHP coding, it is quite complicate to implement it.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Kenneth Pabon
-
Topic Author
- Offline
- New Member
-
9 years 9 months ago #67375
by Kenneth Pabon
KennethRules | Greenhouses
Replied by Kenneth Pabon on topic How to create new sub page?
Hello Dang,
I'm done on number 2 and number 3 the remaining is the number, hope you can give me hint on this...
really appreciate that.. thank you..
I'm done on number 2 and number 3 the remaining is the number, hope you can give me hint on this...
really appreciate that.. thank you..
KennethRules | Greenhouses
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 9 months ago #67376
by Mr. Dam
Replied by Mr. Dam on topic How to create new sub page?
Hi Kenneth,
You need to add function into file: components > com_osproperty > classes > listing.php
check sample code
case "property_thankyou":
OspropertyListing::thankyouPage($option,$id);
HelperOspropertyCommon::loadFooter($option);
break;
Abobe code is used to setup the Thank you page (show Property details after saving)
And then find the code is used to setup the function here:
static function thankyouPage($option,$id){
....
Within this function, you can add HTML code to show the your static text
Good luck
Dam
You need to add function into file: components > com_osproperty > classes > listing.php
check sample code
case "property_thankyou":
OspropertyListing::thankyouPage($option,$id);
HelperOspropertyCommon::loadFooter($option);
break;
Abobe code is used to setup the Thank you page (show Property details after saving)
And then find the code is used to setup the function here:
static function thankyouPage($option,$id){
....
Within this function, you can add HTML code to show the your static text
Good luck
Dam
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.