I am trying to
1) implement the hook menu and variable_set in the block hook and to solicit and store configuration values from user,
2) then use retrieve configuration values and
3) pass them out into a template using theme hook when page is shown.
However I need a bit of a push on step two and three!
// ===================== file:...
I have jCarousel Lite going in Drupal with images of various sizes/aspect ratios. I'm not having much luck trying to center the images vertically and horizontally (i.e. evenly-spaced). The plugin requires that the images be in a <ul><li><img ... /></li></ul>. I've tried display:inline-block, marginTop:50% among other things, most of wh...
I'd like to show node's location within a node (between other fields).
Do You know any
formatter
CCK field
other module-based
solution for that?
PS I know a semi-satisfactory solution that lets display the map above or below a node, but not in between other fields: to enable a node location block and place it close to the content....
hi,
can I collapse the field in my edit-content page in Drupal ?
For example, at the bottom of the page Revision Information, URL Path Settings, Authoring Information etc are collapsed.
I would like to have this functionality for the CCK Fields as well.
thanks
...
I'm trying to configure my Gallery2 integration in Drupal but i'm stuck at Step 4.
I have to put in two path's to drupal's .htaccess file.
The public path (This is the location of your Drupal .htaccess file relative to your webserver document root.)
Filesystem path (This is the absolute directory path of your Drupal .htaccess file.)
b...
Is there an easy way to convert Drupal "add new comment" link into an "add new comment" gif image?
Syntax that adds link appears to be
<?php if ($links): ?>
<div class="links"><?php print $links; ?></div>
<?php endif; ?>
...
I am writing a module for my organization to cache XML feeds to static files to an arbitrary place on our webserver. I am new at Drupal development, and would like to know if I am approaching this the right way.
Basically I:
Expose a url via the menu hook, where a user can enter in a an output directory on the webserver and press the ...
Hello,
I'm basically looking to simply print out each of the allowed values in a CCK field..
i know the allowed values are stored inside a text field within the table: 'content_node_field'.
the values are then stored within 'global_settings'
I'm looking to somehow print out each individual allowed value using a PHP loop.
however wit...
I have a CCK defined form called 'mytype_node_form'.
I create a module called form_overrides
I create a function called form_overrides_form_alter where I successfully check for $form_id = 'mytype_node_form'
Question:
What should be the name of my validation function (hook_validate) in module form_overrides that would allow me to add ...
Not sure how to describe this issue, but I only get it in Firefox and not any other browser.
When clicking around, the page sometimes blows up with the attached pic. Sometimes it has even more characters than that, and you can see things like LAME encoder referenced. Anyone know what the deal is? All site caching is disabled. I am no pr...
I'm currently working on a project that involves moving a database of documents for court records and briefs over to a Drupal environment. One of the problems that we are faced with is how to index these documents.
In our court district, records and briefs all have a docket number which is assigned to a case. The interesting thing is ...
hi,
how can I add an Eclipse project to my Eclipse PDT ?
I've a Drupal installation on my hard-disk (a subfolder of Eclipse workspace).
I've tried create new PHP project from eclipse, but it seems not to work.
I've successively tried to import the Drupal project but Eclipse only recognize the SimplyModern project from drupal themes f...
Hi all,
I'm trying to create a view to limit the options available to a user for a CCK NodeReference field. I want to pass the current user's ID as an argument to the view that selects the options for the CCK NodeReference field. Basically when the user creates a new item, I only want them to be able to reference a node which they creat...
Are there any Drupal IDE's with syntax highlighting, and possibly intellisense, function descriptors?
...
I currently have a view (Drupal 6 using Views2) that properly aggregates a custom content type (videos) and filters them for a page display. When I create a block display, it previews the results in live preview just great, but when i go to the page expecting to see the block it doesn't appear.
I'm fairly certain the argument I'm attem...
hi,
I'm developing a website in Drupal 6.
I've 3 blocks (I use as footers), I've created the first 2 time ago and recently I've added a new one.
As root I can, of course, edit all of them, but authorized users can only edit 2 of them. I dunno how to change preferences for the third block.
thanks
...
I made a customized template called node-mynode.tpl.php
Whenever a node of type mynode is requested, then node-mynode.tpl.php
is automatically used.
However, now user wants to see a specific menu block in this case.
Question:
How can I assign a block to a specific content type?
Hint: I have started to look at URL aliases with Pathaut...
hi,
I'm using Views in Drupal.
I would like to show a specific node always on top of my View regardless of other sort criterias.
thanks
...
Hi. A few questions.
1) Where is the best place to populate a new database table when a module is first installed, enabled? I need to go and get some data from an external source and want to do it transparently when the user installs/enables my custom module.
I create the schema in {mymodule}_schema(), do drupal_install_schema({tablena...
Is it possible to use a WYSIWYG editor in texarea
for Drupal site configuration form (system_settings_form).
This is how the configuration is coded now...
$form['my_module_text_bottom'] = array(
'#type' => 'textarea',
'#title' => t('Some text'),
'#default_value' => variable_get('my_module_text_bottom', 'This is configurable...