Any documents with samples to create dynamic url?

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
vicn1222
Joomla! Intern
Joomla! Intern
Posts: 54
Joined: Fri Jul 02, 2021 10:34 pm

Any documents with samples to create dynamic url?

Post by vicn1222 » Sat Jul 31, 2021 5:59 am

Hi,

I have a data table in the database. When user searches a keyword, I find the id (say 53467) associated with that keyword from the database, then I need to redirect the url to
https://www.mysite.com/category/53467.html, and display the content to the user.

How can I achieve this? I am sure I also need .htaccess, so if a user directly click an external link to that url, content can be queried and shown to the user.

I am pretty good at php & MySQL, just not very experienced at joomla yet.

I am currently using sourcer to embed php & js in articles.

I have created a few static pages, now need to find a way to create dynamic content.

Thank you.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28075
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Any documents with samples to create dynamic url?

Post by Per Yngve Berg » Sat Jul 31, 2021 7:12 am

Sounds like to big project to bit ficle with Sourcerer. It will be a nightmare to maintain.


I did use Fabrik to develope in. https://fabrikar.com

Other extensions: https://extensions.joomla.org/category/ ... directory/

Last option is to develop your own component.
https://docs.joomla.org/Portal:Developers

vicn1222
Joomla! Intern
Joomla! Intern
Posts: 54
Joined: Fri Jul 02, 2021 10:34 pm

Re: Any documents with samples to create dynamic url?

Post by vicn1222 » Sat Jul 31, 2021 11:54 am

No extensions or plug-in please. Basic sourcer or DirectPHP is good enough for me already. No other plugins can give me what I need. So I would rather do it myself. Thank you.

vicn1222
Joomla! Intern
Joomla! Intern
Posts: 54
Joined: Fri Jul 02, 2021 10:34 pm

Re: Any documents with samples to create dynamic url?

Post by vicn1222 » Sat Jul 31, 2021 4:53 pm

I figure it out.

This is a beautiful framework! Over 30,000 line of codes can be reduced to less than 2,000 lines!

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28075
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Any documents with samples to create dynamic url?

Post by Per Yngve Berg » Sat Jul 31, 2021 5:12 pm

Mod. Note: Relocated the topic from Beginner to the Coding Forum.

Here is the Joomla API: https://api.joomla.org


Post Reply

Return to “Joomla! 3.x Coding”