This topic is locked
[SOLVED]

 Static themed pages

3/3/2016 3:39:52 PM
ASPRunner.NET General questions
Pete K author

Is it possible to create static pages within ASPR that can include the header & footer and style elements common to the other pages? I know you can add "Custom Files" but that doesn't seem to work as I'd like. I really want to have pages that are similar to the generated pages at the top of the list in the Editor (Login page, Register page, etc.). This would seem to be a common scenario. I usually create help pages and other informational pages within my applications and have the look & feel of them match the data pages. Any tips would be appreciated.

jadachDevClub member 3/6/2016

I too have come across the need for a "static" page. There may be a better way, but what I did was to create a table in my database dedicated to static pages. This would mostly be instructions, etc. Then I would create a custom view in ASPR bringing in the page id I wanted. In the page content field I set it to view as HTML. Then showed only the list page with the grid layout set up as vertical. I then deleted anything on the list page I didn't want, such as pagination and there you have it.
Here is the finished product running on my test everything application.

Pete K author 3/7/2016

Thanks Jerry. I was thinking along the same lines. I guess I'll go that route. One thing I like about it is that making changes to those pages would then become a database operation, not requiring me to touch the app itself. I could even add the ability to edit those pages right in the app. I'm actually liking this idea the more I think about it. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=78937&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

jadachDevClub member 3/7/2016

I agree. Controlling from the database is always easier. I'm happy the solution will work for you.