Hi Joe,
Thankyou for your reply.
From you last reply:
>>When you refer to a slideshow module that displays based on "the record being accessed" what does that mean? What is "the record"? Is it the logged in user?
I've created a database table and generated a form to populate it using XMod Pro. Using a template i can display records from the database table, as in this page:
http://www.netmonics.co.uk/Offerings.aspx (the list page, for want of a better name)
There are two 'articles', one for each record in the database table. You can click on the text or image of each article to view the full details on the 'details' page, which has no styling at present.
I would like to be able to add DNN modules on the 'details' poge which would be able to display information relating to a given article (in this case).
For example, a slideshow with a different set of images for each article.
Overall what I'm trying to do is be able to allow users to create rich pages with no html knowledge.
I can create and configure everything with almost no programming required i.e. create a database table, generate the entry form and configure templates for the list and details pages. And this would mean the pages could be prepared very quickly, i.e. low cost.
The structure on the page is partly defined by the database table for the page. But I would like the 'details page to contain DNN modules, but that is now seeming like it may not always be possible.
I can achieve a one to many relationship. Let's say I was creating a recipe form for a coookery web site. Each recipe would have a list of ingredients.
I could therefore create a recipe table with things like title, main image, description etc. And then another table called 'Ingredients' which would contain a list of ingredients for each recipe. I could create an ingredients form and template and make them accessible on the 'details' page. I would have the primary key from the recipes table to at that point to save in the ingredients table. It's even possible to create drop downs for the fields of the page for things like ingredient quantityl (Kg, teaspoon, pint, etc.)
So the whole thing is like a simple web application for creating content easily and quickly.
But, I made a bad assumption before starting out on with this little project. I just assumed that the modules could pick up different data baed on some kind of context, but I was wrong.
So as far as I can see, there are a few options.
1) Buy modules which are context sensitve, but that as you mention seems unlikely that many are available.
2) Take the source code for and existing module and modify the module to be context sensitive.
3) Create modules with Xmod Pro, these are context sensitive and could access the stored procedures and tables belonging to a DNN module.
4) Create modules from scratch using ASP.NET. But this could be an awful lot of effort for something like a slideshow.
But I am so surprised that it's not possible to do this right out of box. Doesn't anyone else want to create pages in this way?
The restriction of modules with no context sentivity, does mean that the pages couldn't be very rich, which is a great pity.
But are there any other alternative approaches which would achieve the same things?
I thought about page templates, there could be two page templates for the list and details page.
The links on the list page to the details page could be unique based on the primary key of the underlying table i.e.
www.websitename.com/detailspage1.aspx, www.websitename.com/detailspage2.aspx, www.websitename.com/detailspage3.aspx etc.
The web site content administrator would be respsonible for creating a details page with the correct details page name, slighly more work but acceptable.
But this having a physical page for each details page would create a maintenance nightmare.
So the only other way I can think of is to generate the physical pages. That way, the could simply be regenerated when a change is required.
I assume there would just be some tables in the database to to update to register the page and it's modules. As the pages are physical, their modules would be able to contain specific content. I am just floating an idea here, does this seem reasonable?
If the user were logged in, that could be used affect the content, but I haven't really considered this possiblity yet.
Many thanks for your replies once again.
Steve