OS Property support center

How to create new sub page?

  • Kenneth Pabon
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 9 months ago #67367 by Kenneth Pabon
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

KennethRules | Greenhouses

Please Log in or Create an account to join the conversation.

More
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
Code:
$segments[] = JText::_('OS_GET_DIRECTIONS');

and change

OS_GET_DIRECTIONS

by another words you want.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Kenneth Pabon
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 9 months ago #67372 by Kenneth Pabon
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
  • New Member
More
9 years 9 months ago #67373 by Kenneth Pabon
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..

KennethRules | Greenhouses
Attachments:

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

  • Kenneth Pabon
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 9 months ago #67375 by Kenneth Pabon
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..

KennethRules | Greenhouses

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan