The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
3 views

How to restrict access to page by URL depending on which page you came from

I have page which implements by hook_menu and i want to permit access for this page if user come from certain form but not from just url string. How can i solve it? Thanks.
-1
votes
1answer
20 views

Display content from mymodule_page in two regions

Is the way, to put mymodule page content in region content, and sidebar programmatically without using blocks? ex. function mymodule_page(){ $page['content']['my'] = array( '#type' ...
0
votes
1answer
23 views

Add a youtube video in the template file using url

I've tried using this code <?php print theme('video_embed_field_embed_code', array('url' => $video['http://www.youtube.com/embed/Zz1HPLtecOg'])); ?> but it only displays the url and doesnt ...
0
votes
0answers
29 views

How do I create different landing pages?

I am newbie to Drupal and I have deadline to make a website. So, I apologize if this question sounds silly to you.. I wanted to create a website that has one front page and 8 different landing ...
0
votes
2answers
30 views

Creating new template for new page

In drupal 7, I created a content type called page and set the url to /about. If I check the source code I see <link rel="canonical" href="/website/about"> and <link rel="shortlink" ...
1
vote
2answers
24 views

add variable to process_page($vars) in form function

Is there an option to change $vars array in form function? I would like to pass some variables to page template in form creation function .. If not, what are other options to influence page.tpl from ...
0
votes
1answer
33 views

How to display a view without using a page template - drupal 7

So on a drupal site I am working on the client has a page where they have a view without a page template applied to it, and now the client wants to change the url of that page. As soon as I change the ...
0
votes
0answers
24 views

Rebuild exterior elements of form on submit

On the user page I display two types of groups a user can be subscribed to: a pending membership or an approved membership. To illustrate this: The 'cancel membership request' button is the submit ...
0
votes
2answers
23 views

Drupal page other than main

It mightbe a lame question but I want to be able to display a custom page let say: "/news". So, I created a template named: page--news.tpl.php with my content, some rendered views etc. Now when I got ...
0
votes
1answer
45 views

How to make a non-Drupal page and where to place it? [closed]

I need to create a page (it's receipt) which is not drupal-page. How it should work: User clicks the link in "User Menu" or in "User Profile" This link is made from link to custom page itself and ...
0
votes
0answers
5 views

Call up the Nodequeue drag and drop page in Pages

I'm using Pages Module and Nodequeue; what I'd like to do is present some users with the administration drag and drop page that I can access at admin/structure/nodequeue/my_list/view/1 . And would ...
0
votes
1answer
32 views

Contact Form in custom Theme

I need to create one request information form that goes to each page in my website. That means I need to add that form into page.tpl.php page. Form includes just basic information like name, email, ...
0
votes
0answers
8 views

D7 Facebook OAuth Module: Get Page Info

I've installed the Facebook OAuth module and have my app all configured. I have played with it a bit and see how to easily pull in user info from Facebook. The example of the photo album is nice. ...
0
votes
1answer
66 views

Page transitions in drupal 7

I am interested in using https://github.com/dgileadi/zepto-page-transitions for page transitons in drupal 7, i am not a coder but have some experience with setting up drupal sites with themes from ...
-1
votes
1answer
22 views

Give a basic page a different appereance by rendering it with views

I'd like to render a basic page to look somewhat different for my mobile site. Now I have come up with a combination of views-view--mobile-aboriginalartsfestival.tpl.php, ...
0
votes
1answer
39 views

Drupal best way to render content type data and meta-data

I am new to Drupal and struggling on the best approach to choose, I have several questions which are all related to my approach. Let say I have a content type "Rooms" and would like to create 2 ...
0
votes
1answer
26 views

Panels with multiple rows?

I've got a Node/Page Panel that consists of 2 columns. What I would like to do is to have 2 rows/sections in one of the columns. I haven't found that option in layout designer, only to have a section ...
0
votes
0answers
33 views

Drupal 7 showing literal php code as HTML after transfer

I am in a strange problem. I had a site transfered to one server to another and the new server is showing me literal code of PHP after transfer. The epicness of weird situation is that the front ...
0
votes
0answers
29 views

How to override taxonomy term page output with external tpl.php file

I am working on Drupal 6 project and in that I am using different taxonomy and for each taxonomy I want to add some content. To add content to particular taxonomy term's page I want to override its ...
0
votes
1answer
53 views

How to add an editable text box to a page

So i have created a page which uses an XML feed to generate some output. I want to be able to add a textarea from the FORM API so that i can allow user of my site to enter some details on to the form ...
1
vote
1answer
38 views

Add class to page content output

I have the following snippet in a theme's page.tpl.php: <div id="content-wrap" class="row"> <?php print render($title_prefix); ?> <?php if ($title): ?><h1 ...
0
votes
0answers
19 views

Admin pages failed to load [duplicate]

I am unable to view my admin pages. Whenever I load my page like /admin/config or admin/modules it says unable to load. I have increased max-time to 300 I can browses my site normally no problem ...
0
votes
0answers
33 views

Add CSS file on delete specific node

How can I add a css file to the specific page where you delete a node of type = ... . I know you can add css files to specific pages like this: function hook_preprocess_page(&$vars) { $path = ...
0
votes
0answers
20 views

Create a page to edit only one user field

I have a category field related to users witch is a taxonomy term reference. this field is hidden when editing user profile page. But I need to create a new page that allow me to only edit this field ...
0
votes
1answer
40 views

Is there a way to include jQuery-1.10.2 for specific php functions?

I need to include jquery-1.10.2 for a module I am building in Drupal 7. The problem is, if I include the file with drupal_add_js in the module's .inc file, it causes the admin menu to display strange ...
0
votes
1answer
34 views

Should I use the theme layer or a module to create a complex, static page?

We have a few pages like the following on my site, everpurse.com: https://everpurse.com/home They contain moderately complex markup and CSS. My approach to creating these pages is to create a module ...
0
votes
0answers
43 views

Multilingual Panels does not allow content translation

Drupal 7.26 Multilingual Panels 7.x-1.0 Panels 7.x-3.4 Domain Access 7.x-3.11 Domain + I18n Variables Integration 7.x-1.0 Hello, I am attempting to use Multilingual Panels to translate panel ...
0
votes
0answers
37 views

Render node with tabs in Drupal 7

If I set up a menu callback with this function: function mymodule_menu_callback($nid) { $node = node_load($nid); return drupal_render(node_view($node)); } Then when the node is rendered it ...
1
vote
0answers
45 views

Unable to add a block to a custom page [closed]

I'm trying to add Facet API blocks on my custom page. But the blocks are not displaying on added region. I'm using drupal cloudy theme with recruiter profile. the blocks are visible if I add those ...
0
votes
2answers
115 views

jQuery problem click function [closed]

I'm having trouble doing simple stuff in jQuery. What I wanted was to call a function when something was typed in an input field. Now I'm just trying this: when you click anywhere on the page to ...
0
votes
2answers
51 views

How do I can change the default description of Drupal 7 elements?

I'm trying to change the default descriptions in different pages like (add users). I tried devel themer to findout where there descriptions are came from but it showed nothing. for example look at ...
0
votes
2answers
46 views

How to Create a Blank Page

I need to create a completely blank page in Drupal. For simplicity sake the entire page should display the following: <html> <body> <h2>Hello World!</h2> ...
0
votes
1answer
49 views

Stylesheet for specific page overwritten by standard css

In my subtheme.info I have : stylesheets[all][] = css/style.css And in my template.php I have: function subtheme_preprocess_page(&$vars) { $path = current_path(); if ($path == ...
0
votes
1answer
27 views

Page Navigation issue after executing a jQuery

Using JSinjector, i included a jQuery and made use of a function. I wrote a query inorder to display the external link within a certain div section (within our site). My code goes here (function ($) ...
0
votes
1answer
23 views

How to create a component which has specific content on each page

I'm a novice at drupal, so I'm still figuring things out. I'm looking for a way to accomplish the following the 'drupal way'. I want to create a component, or a block, or something that allows the ...
1
vote
1answer
126 views

Change content of $page['content'] variable

I have overwritten my login page with a file named page--user--login.tpl.php. Now I have this: <div class="main-container container"> <div class="row-fluid"> <section<?php ...
1
vote
2answers
111 views

Trying return array as page content

I'm working on a module in Drupal 7. I have three different forms set up with hook_form. I would like to display the three forms on one page along with some html to organize the forms and apply some ...
0
votes
0answers
1k views

How to customize registration ,login and forgot password pages in bootstrap theme?

I want to customize registration, login and forgot password pages, theming and changing the position of submit buttton and including social connect, i have used this code function ...
0
votes
0answers
23 views

Create a media page with view using and taxonomy

I've installed the media module and set everything up for it to work. And it's working. Now i want to divide my media items into two groups: Videos and Fotos. I'ved set a taxonomy term video and fotos ...
0
votes
0answers
20 views

How to list articles from multi taxonomy terms (assigned as roles)

I have an installation with 1000s of articles which contains fields such as author, translator, editor... I can create a page via views which lists all articles of an author by using contextual ...
1
vote
2answers
160 views

How do I customise the header and footer using a page template for a particular content type?

I have a content type. I want to customise the node pages for this content type, I've used node--[content-type].tpl.php but I need to use a page template to customise the header and footer and ...
0
votes
1answer
58 views

Creating page with hook_menu, updating content with AJAX every 10 seconds

After doing research I'm still not sure what's the best way to do the following: Create a page with hook_menu, generate the content with a callback Run that callback and update HTML with new content ...
0
votes
2answers
82 views

Custom template for a specific page within module for Drupal 7

I'm writing a module for Drupal 7 that gives every user with the right permissions a new page in his profile. I want this page to only display the Drupal header and a div with a specific ID, for a JS ...
0
votes
1answer
83 views

How to embed a quicktab instance in a page?

How do I can embed a qiucktab instance in page? I'm not going to create a region and assign the quicktab into that region. is there anyway to do such thing without using region?
0
votes
0answers
53 views

How to use $page object to put code inside existing wrapper, and altering module file

I'm editing Supersized module: First question is: is there anything that can help me to alter module file (supersized.run.inc) that will follow drupal principles (not editing directly module files), ...
0
votes
2answers
37 views

Dynamic locations in page content

My company website has several physical locations / branches that need to be referenced all throughout the website on basic pages. I would like to create one central table with one instance of each ...
3
votes
3answers
249 views

Different logo on specific page / node

I have a special page called www.mydomain.com/special (whcih is a page node type). Only on that specific page, I want an extra image in the header of that page (next to the logo) The logo and ...
1
vote
1answer
142 views

Drupal 7 page template for right to left languages e.g. page--rtl.tpl.php

Trying to create a custom page.tpl dependant on language or 'right to left' support, here is what i have so far. function THEMENAME_preprocess_page(&$variables) { ...
0
votes
1answer
65 views

Drupal embed nested menu in page? [closed]

Currently, I have a structured site with several categories and several pages per category. Currently I am using the main menu as the structure, with a hierarchical tree-like menu. I found a theme ...
-1
votes
1answer
249 views

how to create a page.tpl.php without $page['content']?

The page.tpl.php of my website shouldn't contain <?php print render($page['content']); ?> because it is only set of blocks. The problem is I'm not able to insert comment form into node pages of ...