Im currently looking into the MURA cms. and while it looks quite nice. I cant seem to alter something that appears to be quite trivial on other platforms.
Im simply wanting to know the location of where the base login form template resides whether it be in a JS file or as a simple .cfm template.
Any ideas greatly apprecated
thanks in advance
You can overwrite/customise the display object that renders the login form.
Take a look at the following documentation on how to:
http://docs.getmura.com/v6/front-end/customizations-staying-on-the-upgrade-path/customizing-display-objects/
And this is the file you want to modify:
https://github.com/blueriver/MuraCMS/blob/develop/default/includes/display_objects/dsp_login.cfm
Related
Although this may seem like a question that has been asked before, answers I've seen all include having the parameters in the URL which is not what I want.
What I currently have is a set of URL's that work as intended but don't follow conventions and aren't clear to look at. I'll skip all the background of what I am doing since it isn't necessary to understand nor help me find a solution.
I have a URL in the following format: exchange/university/<int:univID>/personal-info which is a page specifically for users to enter their personal information on. This page has a button which will redirect users to a new page which is where my problem lies.
The current redirect URL looks like this: exchange/university/<int:univID>/<int:studID>/department and the redirect command within my code looks like this: return redirect('/exchange/university/'+str(univID)+'/'+str(studentID)+'/department')
What I would like is simply to pass the student ID as a parameter into the redirect and not have it appear in the URL since having it in the URL doesn't follow the site structure where users enter information with regards to a specific university and therefore, for me, only the university ID is necessary to understand what the page is supposed to do (and also, having another ID in the URL can make things confusing in the long run)
If you feel I'm over-complicating my life trying to do this and that this problem isn't really a problem, please tell me. Thanks.
I may not be understanding something obvious, but I'm struggling to add a (top-level) menu item to my Wagtail based menu that hooks to a page rendered by an included app that doesn't know about Wagtail. Ideally, it is just a normal Django TemplateView with standard urlconf, though I may need to add some custom code.
If I use the custom URL in the menu editor, I get a not found from Wagtails core.serve. I've looked at snippets, wagtail hooks, RoutablePageMixin, and the custom URL in the menu editor and none seem like it accomplishes what I'm trying to do.
It may well be that I'm simply misunderstanding the docs, but is there a simple example of someone doing this? The closest I've found so far is https://www.caktusgroup.com/blog/2016/02/15/wagtail-2-steps-adding-pages-outside-cms/. I've also searched https://docs.wagtail.io/en/v2.4/advanced_topics/third_party_tutorials.html to now avail. Any guidance appreciated.
Thx,
--Don
Hope this is useful, but it seems that my problem was not the mixing of Wagtail and non-Wagtail items - it was in my URLConf - Wagtail.core.serve occurred before the Django url I was trying to reach and was trying to respond. Once I reordered the URLConf appropriately, I am getting the view as I wanted.
Sigh...
I am starting out in Django and haven't been able to find an answer to this question in tutorials or elsewhere. It seems like a simple feature, so I wonder if I am not understanding - so anyone that can explain it clearly would be greatly appreciated.
Say I have a site with 5 different pages via Django templates. If I write a small app that renders a poll (like the django tutorial), but I don't want that app to have its own url, just to feature, for example, in a sidebar of 2 of the 5 pages. The poll app has nothing to do with the other pages/apps.
My first thought was to go to those 2 pages' templates and include the template for the poll app - {% include "poll.html" %} ... I then found out this renders only the html as is, but I need to reference the database models to render a list of polls.
Inheritance doesn't quite make sense to me in this instance...
So, what would be the best practice way of doing this? For me, this is the whole idea of plug and play apps that Django is good for, but can't figure out how to just plug it in to other templates! I really just want to know the simple theory behind doing this, because it seems like a key feature.
Thanks!
Template tags - specifically, inclusion tags - are what you want.
I have just deployed a django site, and upon changing the value my DEBUG variable to 'False' causes my admin page links to change from active links to simple text.
An attempt to go directly to what I know should be the URL causes a 'TemplateDoesNotExist'.
I am sure it's not a permissions issue with Apache, I feel it is something to do with my admin configuration though I have no idea what.
I figured it out. Here is a reference for anyone else who might find themselves with this problem.
I was using what must be a deprecated method of defining my Admin models - I put them all in models.py, instead of creating a separate admin.py file for each application.
When learning django, there are plenty of tutorials floating around that recommend or give examples that use this method. Apparently this is no longer a good idea (at least not as of Django 1.4). It could probably be wrangled into working with some template hacking, but it is is probably cleaner and definitely simpler to just follow the latest conventions and create the admin.py file.
I thought I was saving time by just cramming it all into one file "for now" but without some of the magical debug-only template loading, this solution failed.
Hope this saves someone some frustration!
I know this question's been already solved.
But in my case, coming from django 1.7 to a server that runs django 1.6, I had to add
admin.auto_discover()
to my urls.py.
Well, I had added this line to the end of urls.py and django admin was all characters !
Moving it to top up the file, above definition of urlpatterns, fixed the issue.
Hope this helps :)
hi guys,
I'm having bit of an issue with a Mura tag, I don't really use a lot of them but I have one in a page with some content underneath it but no matter what I do it renders below any content entered beneath it.
Is this normal? Is there a work around?
No, it's not normal. The Mura tag works similar to cfinclude. Output appears where you include it. I suspect that you have rather a HTML/CSS problem, than a Mura problem. Check your HTML source to see where the output actually shows up.