Drupal is up and running but how do I ...?

How do I use php to print a page to a block? (page uses wysiwyg editor)

Hi everyone,

I've been trying to print content from a page called "Announcements" to my right sidebar.
I know that assigning a variable to the content with php works, but the moderators will be updating this page and I don't want them to use php.

I've tried a solution from http://drupal.org/node/83431

<?php
// We save and restore the real path for the page
$q = $_GET['q'];
// Change event to the path you want, this is the part after q= (or after the base path if you have clean URLs enabled)
// The call to drupal_get_normal() allows for using path aliases.
$_GET['q'] = drupal_get_normal_path('event');
// Get and print the output for just the content associated with the path
// If you see the complete page within a page it means the path callback is probably calling theme('page', ....)
print menu_execute_active_handler();
// Restore the real path for the page
$_GET['q'] = $q;
?>

It worked great, but the page title for all pages became "Announcements".
So I tried removing the first and last commands.


<?php
// Change event to the path you want, this is the part after q= (or after the base path if you have clean URLs enabled)
// The call to drupal_get_normal() allows for using path aliases.
$_GET['q'] = drupal_get_normal_path('event');
// Get and print the output for just the content associated with the path
// If you see the complete page within a page it means the path callback is probably calling theme('page', ....)

Blog shows as title if blog entry is posted from Google docs

This question was asked before in this forum but it seems that nobody is using this feature. I am posting it again to see if there is some interest to see if this works or not.

Problem Statment:

All user emails/usernames changed. What happened!?

All of the sudden all of my users' usernames and emails have been shuffled! Myname with the email myname@myname.com has now been changed to Kate@smith.com. Has anyone else had this problem or something similar to it?

uploading attachments as a node

Hi,

My site has a need to host hundreds of PDF files. Some of them are referenced/linked from multiple web pages.

I would like to be able to play around with attachments like we can using the Attach Node module with images, that is, I would like to be able to upload a file as a node. For example, uploading a file called 'new textfile.txt' might create a node called: node/123 I could then display a link in other content nodes ideally using the tag: [node:123].

This would give me the flexibility of having one master file, visible on many nodes (pages). If I updates 'node/123', then all the other links referencing the node would be updated as well. Of course it would be nice to be able to alter the file title and toggle the ability to display the file size, i.e. [node:123,title="large file",size="on"] This would display a link called 'large file 412KB' and then the size of the file: '412KB'

If it can't be done using the word 'node', perhaps 'file' might be appropriate i.e. [file:123, title="small file",size="off"] This would display a link called 'small file' with the displaying of the file size text turned off.

This should work inside a 'Tablemanager' table.

Currently as I understand it, I have to upload (using the upload module), each attachment inside each page that requires a link to the file.

Category browser only shows some of my catergories. Why??

I have searched the forum but can't find an answer to my specific question. I use Drupal 4.7.1. My website is a "news site" with press releases from various organisations. It's therefore important that all content be grouped into categories to find a specific topic of press release more easily. I have installed the taxonomy browser module and for a while it worked fine. Later I changed my categories around, deleted some and added some, and now when I click on category browser on the website, only 4 of my 14 categories appear on the category browser page to choose from.

images problem

I'm redoing one of my sites and it's based on the voodoo dolly theme. I've got an image for the heading of the right box which shows up fine in Firefox, but doesn't show at all in IE

www.test.boahc.co.uk

Any suggestions?

Pages

Subscribe with RSS Subscribe to RSS - Post installation