I've created custom form using FAPI for my site. And I place each control at specific location base on template provided by the designer. For instance -
<div id="myform">
<span>Enter Your Name : </span> <?php print drupal_render($form['name']); ?>
<span>Gender : </span><?php print drupal_render($form['gender_radio']); ?>
......
I want to add a custom search option on my drupal theme in a block. It will be a form with a text box and few checkboxes. All that the form has to do while submitting is.. generate a search url based on the checkbox state.
http://localhost/restaurant/search/node/type:restuarant category:34,38 %keyword%
The keyword will be the text ...
This is related to another question that I asked before.
I'm using views to present to the user a list of nodes. The user then has to pick their top 3 choices, which I then save to a sub-list that I need to remember to show to the user later.
I was going to use Flags to mark the user's choices. I now realized that this isn't going to ...
I have a view, which outputs all different types of nodes. One content type which I created is called "photo" and includes a CCK Image field.
I want to customise the output, Im currently using views_customcode module to write PHP but I cant find the data to output the CCK image field?
Ive also tried theming the view output, but, I want...
I have setup a view which outputs nodes, including the name of the person who created it.
If a non-admin person browses to the page where that view is displayed, they dont see the name field, I recall somewhere about this being an administrative permission ??
...
I have two views in a Drupal page with the following structure:
<div>
<div>Some content</div>
<div> View 1 </div>
<div> View 2 </div>
</div>
Now I want a wrapper div covering the two views:
<div>
<div>Some content</div>
<div class="wrapper">
<div> View 1 </div>
<div> View 2 </div>
</div>
</div>...
hi,
I've noticed the search engine is drupal sometimes requires to be re-indexed in order to update its index with latest posts.
I was wondering how often the re-indexing is performed, and if it is automatically performed by default.
Is it triggered by cron process ?
Thanks
...
Hello!
I'm going to be building my own site on Drupal pretty soon, and I understand it is quite a deep learning curve to get it done right. Basically, I am looking for some documentation/tutorials online or on book that you could recommend to me by experience, that will help me from the start of development, right through to finish. I a...
I have a taxonomy set up similar to:
Parent Term 1
Child 1.1
Child 1.2
Parent Term 2
Child 2.1
Child 2.2
How can I restrict a certain content type to a certain term?
For example, I want to force "News Item" to only be in "Parent Term 2", so that on the content creation page only that taxonomy term would appear in the taxonomy...
hi,
I've a View displaying users of my website.
how can i remove the user Anonymous from my View ?
i.e.
35
author
16
voter
0
Anonymous
0
user34
I've tried with a filter "User:Name != Anonymous" but it doesn't work.
This is how the added filter looks like: "User: Name not in Unknown"
thanks
...
I have a content types with 3 file fields, all of them can have an unlimited number of images. I need to make a view that returns the title of the content and the images name inside an array (I'm using amfphp with services). The problem is that when I add the relationship to the content field_pics fid I get as many duplicate nodes as th...
Current Setup
Each product on the store has multiple images. When the visitor visits a product page they see a main image and a series of thumbnails (view). When they click on a thumbnail that image is instantly displayed in the main image area.
Each product also has an attribute selection dropdown for example "Colour".
Drupal / Uber...
I've been using a Drupal module called FeedAPI De-Dupe to remove duplicate records from my site's (MySQL) database. The module does a great job, but I'm still left with some "duplicates" when the URLs sometimes contain "www" and sometimes don't. The code handling the duplicate detection is:
case 0: //url-based
$sql = "SELECT n.nid
...
Can someone tell me what's the difference between a .profile and a .make file when it comes to drupal install profiles. Which of these do I need?
...
What is really the difference between OpenID and oAuth? They look just the same to me.
I should clarify, I'm planning to use them in drupal, if that makes any difference. So I guess I'm bound by whatever module implementations are available in drupal.
...
Hi,
I have some javascript popup works fine in html.
I know how the popup works,
but when Im trying to modify and use the codes in page.tpl.php, all of them always fail
is drupal always strip popup? and how to make it works?
thanks in advance
-----added-----
(i know this codes is dirty)
in <head></head>:
<script type="text/javasc...
I have a Drupal setup, and have created an Imagecache preset for the user profile to create a thumbnail picture.
I have enabled user pictures on node comments, but the picture is not displaying correctly
When I view the source, it shows the correct path being "sites/default/files/pictures" etc but ecause the node path is something like...
Im using pathauto so user profiles have a clean URL in the format /user/name-name
How can I output the users name as a link to the profile? Ive seen the theme() function used to do stuff similar to this?
...
Hello
Could somebody tell me the name of function that convert spaces to underscores and letters to lowercase for seo friendly uri's?
I know it's very easy function to implement but I want use function for this job if exists in Drupal already.
Regards
...
I'm generating a view that lists all nodes created by this user. To restrict it to the currently logged in user, do I need to use Filters or Arguments?
I thought Arguments -> User: Uid, but not sure how to specify current logged user as the argument.
...