Re: [mezzanine-users] Need to have the same page in multiple locations in the page tree, how link them?

2018-02-14 Thread Ken Bolton
On Wed, Feb 14, 2018 at 9:24 AM, Roger van Schie wrote: > > I think I will just extend the Page model to include a foreign key, and > then add another check into the template tag to see whether the child page > currently being "inspected" has a foreign key or not, and

Re: [mezzanine-users] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2018-02-14 Thread Simon Bradley
For anyone else using windows. There was another small issue. This line in views.py: # CREATE FILEOBJECT url_path = "/".join([s.strip("/") for s in [get_directory(), path, file] if s.strip("/")]) Changed it to: # CREATE FILEOBJECT url_path =

Re: [mezzanine-users] Need to have the same page in multiple locations in the page tree, how link them?

2018-02-14 Thread Roger van Schie
Hi Ken I might be missing your point, or misunderstanding something completely, but templating is not a problem for me, I've written the models/templates in such a way, that depending on what information they put into the page, various parts of the page template get displayed or not, and hence

Re: [mezzanine-users] Need to have the same page in multiple locations in the page tree, how link them?

2018-02-14 Thread Ken Bolton
Hi Roger, It is possible to do some terrifying things with the page templates. Read http://mezzanine.jupo.org/docs/content-architecture.html#page-templates. (Tortured language in that section is largely my fault, and improvements are welcome.) I have managed to create "content inheritance trees"

Re: [mezzanine-users] Need to have the same page in multiple locations in the page tree, how link them?

2018-02-14 Thread Roger van Schie
Hi Everyone As far as I can tell, the "Link" page won't work for me because I pull information from the child page to display in the parent page. Basically, my client has different categories, and within those categories they have sub-categories, and so on, all built using the page tree