Custom Component Site view

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

Moderators: ooffick, General Support Moderators

Forum rules
Locked
heppers
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Mar 29, 2007 10:24 am
Location: UK

Custom Component Site view

Post by heppers » Fri May 25, 2018 3:56 pm

I have a custom component that will update a database from the admin, that i have muddled through trial and error after creating the basics for free with the online creator.

I now want to be able to create a link to display in a table a selection of the data, this i can cobble together in an article using php code, but it's ungainly.

I realise this may be above my knowledge but i want to throw it out there:
Can i create a menu link that will somehow connect with my component to display a predefined output from the DB table, eg all rows where column=1 ordered by column2 etc?

or even Is there a way i can create a button in the article editor i can click when creating an article, that will plop in a table that displays a predefined output from the DB table, eg all rows where column=1 ordered by column2 etc?


Rather than 40 odd lines of php script?

Please ask if im not clear / you want me to attache my component thanks

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 846
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: Custom Component Site view

Post by effrit » Fri May 25, 2018 4:45 pm

hi
you can make plugin and get parameters from it like
{showdata column=1 orderby=column2}
or make it as module and load in article.
example
https://extensions.joomla.org/extension ... e-edition/


Locked

Return to “Joomla! 3.x Coding”