1

Topic: Home page

Apologies if these questions are more Drupal than Indicia.
I was wondering what needs to be done to have different home pages for users before and after they have logged in. I see iRecord have done this. I'm not sure I want to do anything as sophisticated as they have done but it would be nice to have some text about registering that appears prior to logging in and for this to not appear once a user has logged in.
I was also hoping to insert a picture and have attempted this on my "Introduction" page. I have gone to the "edit" section and in the "body" section clicked on the "image" button. I have provided a link for an image and this then appears on the body box. However, when I save and go to view the page the image does not appear. Any ideas what I might be doing wrong!?
Many thanks
Rachel

2

Re: Home page

Hi Rachel
I'm sure there are many ways of doing this, but the way iRecord does it is using the Drupal Panels module to create a page layout. Onto this page, we can apply "visibility rules" to each panel, so some panels only show up when logged in, and some only when logged out.

There is a tutorial on using Panels in an Indicia context at http://indicia-docs.readthedocs.org/en/ … -page.html though it doesn't mention the visibility rules. If you click on the "cog" to show the menu for each panel on your page when editing, you should see what I mean though.

Best wishes
John

John van Breda
Biodiverse IT

3

Re: Home page

With regard to the missing image, I expect "Input filters" are removing it.

Edit the node. Below the body section you'll see an expandable section for input filters. These limit what HTML is permitted to be displayed.

You may want to set the default input filter to something fairly unrestrictive if you are the only person editing content. Don't do that if you have commenting enabled though!

Jim Bacon.

4

Re: Home page

John, that's working perfectly now, thank you!
Jim, when I edit the node I don't seem to have that option...directly below the body section are some "input format" options and then "revision information".
Another niggle I have been trying to solve this afternoon is that when I change the theme I lose my "nice menu" settings. If I hover over my "submit records" primary menu item I have three options for different types of recording which direct to different pages. This works fine with the Instant Indicia Basic Theme but if I change to "foliage" or "bluemarine" I can now click on "submit records" but it sends me to a holding page which it tells me I shouldn't be able to see. I see at the top of the global configuration pages in themes there is an option for "path to custom nice menus css file". I've tried the .css files in the nice menus folder I installed (sites/all/modules/nice_menus) as in the tutorial directions, but these don't work. Do you have any ideas what the correct path would be; or perhaps this is not the problem?
Thanks again,
Rachel

5

Re: Home page

Sorry, yes, they are called "input formats", not filters, and if you look you'll probably see you have one called "Filtered HTML" enabled which does not allow <img> tags. Change it to Full HTML and off you go. To set the defaults, go to Site Configuration > Input Formats > List.

Sounds to me like when you switch themes you are no longer getting your Nice Menu at all. Could be the region in which you have put your Nice Menu doesn't exist in the themes you are switching to. Look in Site Building > Blocks > List and see what is going on.

Jim Bacon.

6

Re: Home page

Thanks for that Jim, all working now!
Best wishes
Rachel