Hi Michael,
I gave a link to the docs above -
https://www.jamroom.net/the-jamroom-network/documentation/development/789/module-file-system-structure#-templates-
Perhaps it would be helpful to elaborate on my thought process. I'm approaching the subject as someone not trained at programming. My goal is to simply have a page in a module to display a list with similar criteria as the one used in the item-index.tpl
1) I see this:
The reserved template file names are:
/templates/item_action.tpl
/templates/item_details.tpl
/templates/item_index.tpl
/templates/item_search.tpl
/templates/email_(something)_message.tpl
/templates/email_(something)_subject.tpl
Any other file names or directory names that you need can be chosen by you.
=============================
That leads me to believe I can create another template and name it whatever I wish as long as it's not a reserved name.
2) I also see this:
/Templates/
The /templates/ directory is the location to store any .tpl files that your module uses.
During a function in your module you can call the templates with the jrCore_parse_template() function.
Example of jrCore_parse_template():
note $_data is an array of values you want to pass into the template
jrCore_parse_template('template_name.tpl',$_data,'xxYourModule');
===========================================================
To me, that looks like a special coding function which will allow my new template to show. So I experiment with implementing it, ending in frustration.
3) Then I go the extra mile and search JR again coming up with this info from Paul.
https://www.jamroom.net/the-jamroom-network/forum/jamroom-developers/8741/module-url-question
============================================
It looks like b360 was asking the same question I have and Paul seems to be saying there is something one must do in the PHP to make the template show. His info is not detailed and the thread is closed, so I end up running more frustrating experiments in the PHP still just trying to get a simple page to display.
4) At this point, I'm convinced there is something I must do in the PHP but I don't understand what it is and where to implement. So I waste even more time looking through PHP codes in the index.php, include.php, and profile.php of various modules to see if I can find an example of the code that makes a template display. This also ends in frustration.
5) So I write in the forum and ask for help because I am clearly lost and what seems like it should be a very simple task (getting a simple page to display) has wasted many manhours.
So in the end, what I am looking to do is put a button in my module that will show on the item_index in every profile. It needs to open a page that will display a simple list from the module's datastore specific to the profile where the button is clicked.
If I am understanding correctly (what Brian has said) then I've been "barking up the wrong tree" the whole time. In other words, I have to put the template in the skin and devise a code that will list the module's items (specific to the profile where the button is clicked) there.
I'm not sure how to implement that so I'll have to experiment again. If my template was going to be in the module then it would have been {$jamroom_url}/{$profile_url}/{$murl}/NEWTEMPLATE.tpl
Now apparently it must be {$jamroom_url}/NEWTEMPLATE.tpl and obviously will not show inside the profile, like other profile pages do. It is also not going to have a profile specific URL. Yet somehow it must display profile specific info from the profile calling it, which seems counter-intuitive at the outset.
So at this point, I'm wondering how that will code and am looking at more time running experiments.
--
Ken Rich
indiegospel.net