Lev Lafayette | 1 Feb 03:37
Favicon

Append to Node Body, Select Types

Hello Drupalites,

Before I go diving into a MySQL solution is there an easier way to append the same text to node body according
to content type?

e.g., to all "Stories" content add "Please contact Mr. Blah on 0400 123 123" at the end of the Body.

Please note I don't want a block - it has to append in the 'Body' section of the node.

Extra thanks if you there's a way of adding the same message to the 'Log' section.

e.g., to the log of all "Stories" add "Added Mr. Blah's number".

Thanks in advance!

-- 
Lev Lafayette, Systems Administrator, Victorian Partnership for Advanced Computing, lev <at> vpac.org
"If you are sending a reply to a message or a posting be sure you summarize the original at the top of the
message, or include just enough text of the original to give a context. This will make sure readers
understand when they start to read your response."  RFC 1855
110 Victoria Street                                        phone:   03 9925 4909
Carlton South, Victoria 3053,  Australia          mobile:  0432 255 208
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

Ms. Nancy Wichmann | 1 Feb 04:43
Gravatar

Re: Append to Node Body, Select Types

There may be a module that does that, but if not, a custom module to do that would not be hard at all.
 
Nancy
 
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.

From: Lev Lafayette
Before I go diving into a MySQL solution is there an easier way to append the same text to node body according to content type?
e.g., to all "Stories" content add "Please contact Mr. Blah on 0400 123 123" at the end of the Body.
Please note I don't want a block - it has to append in the 'Body' section of the node.
Extra thanks if you there's a way of adding the same message to the 'Log' section.
e.g., to the log of all "Stories" add "Added Mr. Blah's number".
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]
Eric W. Bates | 1 Feb 15:53

Re: Drupal multi site problem

I have not seen your specific problem, but I've found it to be 
beneficial to use

sites/mysite1/themes
sites/mysite1/modules

rather than

sites/all/themes
sites/all/modules

This is a pain-in-the-ass to keep them all up to date (separate entries 
in .drush/aliases.drushrc.php are essential); but it lets you work with 
each of the multi-sites separately.

On 1/20/2012 7:03 PM, Roger wrote:
> I have several new multi sites operating successfully however on  afresh
> multi site install this morning  themes when changed from default revert
> to black text on white background, not the Seven or Stark themes, just a
> mess up of the default.
>
> Has anyone experienced this and what can be done to work around please
>
> Devel module does not work as it used to a few months ago so is of no
> help here.
>
> Help appreciated
> Roger
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

Earnie Boyd | 1 Feb 17:23
Picon

Re: Drupal multi site problem

On Wed, Feb 1, 2012 at 9:53 AM, Eric W. Bates <ericx <at> ericx.net> wrote:
> I have not seen your specific problem, but I've found it to be
> beneficial to use
>
> sites/mysite1/themes
> sites/mysite1/modules

Yes, as well as

sites/mysite1/files
sites/mysite1/tmp

You'll need to go to the file-system settings menu and change the
"Temporary Directory:" value.  The reason is that differing sites may
conflict with each other.

>
> rather than
>
> sites/all/themes
> sites/all/modules

I use to do this but if you need to upgrade and you have more than two
sites then it can get hairy trying to upgrade sites because all sites
would need to be set to maintenance mode.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

Ms. Nancy Wichmann | 1 Feb 17:29
Gravatar

Re: Drupal multi site problem

Interesting, I didn't get the original email...

When I see this problem, the first two things I do, and usually clear it up: Clear the cache; re-save the theme settings.
 
Nancy
 
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.

From: Eric W. Bates
I have not seen your specific problem, but I've found it to be
beneficial to use

sites/mysite1/themes
sites/mysite1/modules

rather than

sites/all/themes
sites/all/modules

This is a pain-in-the-ass to keep them all up to date (separate entries
in .drush/aliases.drushrc.php are essential); but it lets you work with
each of the multi-sites separately.

On 1/20/2012 7:03 PM, Roger wrote:
> I have several new multi sites operating successfully however on  afresh
> multi site install this morning  themes when changed from default revert
> to black text on white background, not the Seven or Stark themes, just a
> mess up of the default.
>
> Has anyone experienced this and what can be done to work around please
>
> Devel module does not work as it used to a few months ago so is of no
> help here.
>
> Help appreciated
> Roger
--
[ Drupal support list | http://lists.drupal.org/ ]


--

-- 
[ Drupal support list | http://lists.drupal.org/ ]
robert mena | 2 Feb 20:37
Picon

Finding the template used by a view

Hi,

I have one view for which I have to alter how the content is
displayed.  In my case I have a list of recipes and for each one I
have to add a "see inside" text with the proper link.   Right now the
link already exists for the title.

I've found the view but not where how it is displayed. Sorry the
newbie but the original developer left without giving me the
documentation.

Regards.
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

Ursula Pieper | 2 Feb 21:00
Picon

Re: Finding the template used by a view

Hi Robert,

Did you try the "More" option in the Pager section (middle column bottom on the views3 views admin page for that particular view)?

Ursula

On Thu, Feb 2, 2012 at 11:37 AM, robert mena <robert.mena <at> gmail.com> wrote:
Hi,

I have one view for which I have to alter how the content is
displayed.  In my case I have a list of recipes and for each one I
have to add a "see inside" text with the proper link.   Right now the
link already exists for the title.

I've found the view but not where how it is displayed. Sorry the
newbie but the original developer left without giving me the
documentation.

Regards.
--
[ Drupal support list | http://lists.drupal.org/ ]

--

-- 
[ Drupal support list | http://lists.drupal.org/ ]
robert mena | 2 Feb 21:08
Picon

Re: Finding the template used by a view

Hi ursula,

Thanks for the reply.   I am using Drupal6 and I could not find the
pager section you've mentioned.

I am in the Default tab (the first one of the view) from the admin

www.foo.com/admin/build/views/edit/list_recipes

I found one Theme (right below the CSS class item) but it seems to
only display the standard files (like views-view.tpl.php,
views-view-unformatted.tpl.php and so on.

On Thu, Feb 2, 2012 at 4:00 PM, Ursula Pieper <dramamezzo <at> gmail.com> wrote:
> Hi Robert,
>
> Did you try the "More" option in the Pager section (middle column bottom on
> the views3 views admin page for that particular view)?
>
> Ursula
>
> On Thu, Feb 2, 2012 at 11:37 AM, robert mena <robert.mena <at> gmail.com> wrote:
>>
>> Hi,
>>
>> I have one view for which I have to alter how the content is
>> displayed.  In my case I have a list of recipes and for each one I
>> have to add a "see inside" text with the proper link.   Right now the
>> link already exists for the title.
>>
>> I've found the view but not where how it is displayed. Sorry the
>> newbie but the original developer left without giving me the
>> documentation.
>>
>> Regards.
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

Néstor | 2 Feb 21:51
Picon

Switching theme problem

We had 2 themes built for use by a 3rd party based on FUSION.

One theme is our regular theme and the other is an Emergency theme.

 

When I switch to the Emergency, it does not work but if

I do the following steps at list once:

1) Go to the BLOCKS page and move the 2 emergency blocks from the "Disabled" area to the "Content Top" area. The 2 emergency blocks are "Emergency Alert" and "Emergency Information".

2) Move the blocks Issues: Block: Home and News: Block: Home to the Disable or NONE area. 

3) Go to the THEMES page and set the EMERGENCY theme as default and click "Save Configuration". 
4)Click on "Save Blocks". 

When the emergency is over: 
1) Go to the BLOCKS page and move the 2 emergency blocks back to the Disable or NONE area 
2) Move and make sure that the blocks Issues: Block: Home and News: Block: Home are the top blocks under Counter Top block area in that order. 
3) "Save Blocks". 
4) Go to the THEMES page and set the theme SDCWA as the default theme and "Save Configuration"

 

 

So once I do the above steps at list once then from then on the theme switching works

By just choosing either the Emergency theme or our regular theme.

 

Have guys ever seen anything like this?

 

Thanks,

 

Néstor J
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]
Patrick Avella | 2 Feb 22:18

Re: Finding the template used by a view

Hi Robert, it doesn't sound like you need to muck around in templates
to achieve that.

If you change the display type to "fields", add your title and content
field, then find the field called "link". In the settings for that
field you can have it say any test you like, in this case "see
inside".

Think it's only a matter of updating the CSS if it's even necessary
(it might not be, you might be able to just add the field and be done
with it).

Hope it helps.

Thanks,
Patrick

On Thu, Feb 2, 2012 at 3:08 PM, robert mena <robert.mena <at> gmail.com> wrote:
> Hi ursula,
>
> Thanks for the reply.   I am using Drupal6 and I could not find the
> pager section you've mentioned.
>
> I am in the Default tab (the first one of the view) from the admin
>
> www.foo.com/admin/build/views/edit/list_recipes
>
> I found one Theme (right below the CSS class item) but it seems to
> only display the standard files (like views-view.tpl.php,
> views-view-unformatted.tpl.php and so on.
>
> On Thu, Feb 2, 2012 at 4:00 PM, Ursula Pieper <dramamezzo <at> gmail.com> wrote:
>> Hi Robert,
>>
>> Did you try the "More" option in the Pager section (middle column bottom on
>> the views3 views admin page for that particular view)?
>>
>> Ursula
>>
>> On Thu, Feb 2, 2012 at 11:37 AM, robert mena <robert.mena <at> gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I have one view for which I have to alter how the content is
>>> displayed.  In my case I have a list of recipes and for each one I
>>> have to add a "see inside" text with the proper link.   Right now the
>>> link already exists for the title.
>>>
>>> I've found the view but not where how it is displayed. Sorry the
>>> newbie but the original developer left without giving me the
>>> documentation.
>>>
>>> Regards.
>>> --
>>> [ Drupal support list | http://lists.drupal.org/ ]
>>
>>
>>
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
> --
> [ Drupal support list | http://lists.drupal.org/ ]
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]


Gmane