0
Hi,
I had a question regarding the addition of hyperlinks that would lead to multiple pages for additional track information.
I was wondering if you could guide me on the correct path code procedure-wise & DB-wise on how to go about carrying this out.
for example some of the additional sections we would like to add would be: arrangement, drums, and lyrics.
I was thinking possibly that the existing joomla article/content sections could store some of these additional track sections, and then just url hyperlink each section to each according track section. Or maybe another way which would generate extra sections on the back-end of music collection to add these types of sections for additional fields to be entered.
Our web system's function is to just be able to store more detailed track information on the cd.
Attached is an example photo of what we are trying to carry out with the different hyperlinks going across the bottom which indicate the different detailed song information sections.
Thank you for the help,
v
[img size=537]http://www.joomlamusicsolutions.com/images/fbfiles/images/page1.jpg[/img]
I had a question regarding the addition of hyperlinks that would lead to multiple pages for additional track information.
I was wondering if you could guide me on the correct path code procedure-wise & DB-wise on how to go about carrying this out.
for example some of the additional sections we would like to add would be: arrangement, drums, and lyrics.
I was thinking possibly that the existing joomla article/content sections could store some of these additional track sections, and then just url hyperlink each section to each according track section. Or maybe another way which would generate extra sections on the back-end of music collection to add these types of sections for additional fields to be entered.
Our web system's function is to just be able to store more detailed track information on the cd.
Attached is an example photo of what we are trying to carry out with the different hyperlinks going across the bottom which indicate the different detailed song information sections.
Thank you for the help,
v
[img size=537]http://www.joomlamusicsolutions.com/images/fbfiles/images/page1.jpg[/img]
Responses (3)
-
Accepted Answer
0if the fields you want to add are all text fields, then I can guide you. but if you want to have dropdowns, taking information on other database tables (like genres, formats or types, wich have their own administration feature) then its a bit more complicated.
If you're interested in the second way to go along with this, we have a customization service that you could be interested in (you can contact us at joomlamusicsolutions@gmail.com)
if the first option is enough for you, tell me and I'll guide you quickly
Germi -
Accepted Answer
-
Accepted Answer
0asuming that you want new text fields on the songs:
I'm gonna write an example assuming that our field is called "extra_field". you can extend this in as many new fields as you want
1 - create a new table field (of type VARCHAR(255) for instance) on the table jos_muscol_songs of the database
2 - open file /administrator/components/com_muscol/tables/song.php and add a new variable on the class called extra_field. like this:
var $extra_field = null;
next all the other variables already created
3 - open /administrator/components/com_muscol/views/song/tmpl/form.php and add a new input field named "extra_field" and with id "extra_field" also. On the value, write
echo $this->song->extra_field;
(just take a look at all the other fields, the estructure is always the same)
4 - finally all that is left is to make the new field show up in the front end view. open
/components/com_muscol/views/song/tmpl/default.php
and print the variable wherever you want it to be:
echo $this->song->extra_field;
thats is
proceed exactly the same way with all the fields you want to have, changing "extra_field" for whatever the field name is
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »