Getting book pages in same level like getting child pages

Getting book pages in same level like getting child pages

I have a book called courses with several subpages, I want to show the list of ot other subpages when one subpage is open. Example: -Courses —Course1 —Course2 —Course3 —course4 I want to show course1, course2 & course3 when course4 is open.... read more
Getting book pages in same level like getting child pages

Printing views exposed sort criteria separately to exposed filters

Exposed filters are either: – Printed in views-view.tpl.php using the $exposed variable. – Printed in a block, probably using the same variable. This variable ($exposed) contains the exposed sort criteria and filters. I would like to find a way to print... read more
Getting book pages in same level like getting child pages

How to use curly braces in schema default value?

I have a long varchar field that I’m using to save serialised data with drupal_write_record. I’d like to set the default value of the column to “a:0:{}” (which is serialize(array())). However, when Drupal runs database updates, they are run... read more
Getting book pages in same level like getting child pages

How to format user profile content to be printed on a printer?

I’m building a recruiting website using the eRecruiter profile distribution which uses Profile2 and was wondering if there is defined solution to creating a formatted page specifically for printing in D7 so the resumes can easily be printed in a nice... read more
Getting book pages in same level like getting child pages

Dynamic menu item based on Views argument

Is it possible to have a dynamic title on the menu item based on the argument that Views is receiving? I’m using the title on the menu item on the breadcrumb and my breadcrumb changes based on the argument. read more
Getting book pages in same level like getting child pages

Field in Custom Content Type Stripping out <img> tags

Drupal6: I have a custom content type, with a custom field, set to textarea. The content type’s instance filter is set to Full HTML. When I add an image tag to the custom field, the image renders in the WYSIWIG in edit mode. When I save the node, the tag... read more
Getting book pages in same level like getting child pages

Get all users with specific roles using EntityFieldQuery

I thought this was an easy task, yet there does not seem to be a Drupal-method for this. I came as far as knowing I have to use EntityFieldQuery for this – because the API said conditions for user_load_multiple() are deprecated. So I tried this: $query = new... read more
Getting book pages in same level like getting child pages

Merging output of Print.module’s printpdf with existing PDFs

Recently, I created an output template for the Print module, such that it dynamically generates a measurement sheet when a certain content type is parsed by its PDF functionality (using dompdf in this case). Everything works great, but the client’s requested... read more
Getting book pages in same level like getting child pages

How do I get the menu ID based on the menu title?

I am looking for a function to call like in the following snippet: get_menu_id(“my menu title”); Do you have any tips? read more
Getting book pages in same level like getting child pages

Problem with swfobject_api or jwplayer module

I have a problem with swfobject_api or jwplayer module. When I use this code in node.tpl.php everything is fine. $config=’sample’; $flashVars=array( ‘file’ => ‘path to flv’ ); print... read more
Getting book pages in same level like getting child pages

Altering ImageField Widget with FUpload enabled

I need to alter the ImageField Widget so that I can add some fields other than the Description, Alt and Title fields. I’m able to do this when I select the file field widget type as Image Uplaod, but when I select the FUpload widget type, the changes don’t... read more