SOLVED !!! Using Campaign Title on Donation Page

More
7 years 10 months ago - 7 years 10 months ago #82363 by Frank
Hello We purchased the Donation plugin and I has a quick question,

Is it possible to use the campaign title instead of "Online Donation" on the individual campaign pages instead of the text "Online Donation" The text used for the title does not appear on the individual pages.

www.dropbox.com/s/10skujivrrows1z/Screen...%2009.25.39.png?dl=0

Thank you,
Last edit: 7 years 10 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #82376 by Dũng Nguyễn Việt
Replied by Dũng Nguyễn Việt on topic Using Campaign Title on Donation Page
Hello.
The page you are using look like an article, and you can change Article title to text you want.
Or if i have wrong to understand, please send me link to your site, and i can look and help you.
Thanks.

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #82405 by Frank
Replied by Frank on topic Using Campaign Title on Donation Page
So the pages with the forms are set up as campaigns, and the campaign list is the auto generated page I assigned a menu item to:

Here is the list page: www.lasvegasymca.org/test-campaign-list/

In the Back-end I added 2 campaigns: www.dropbox.com/s/maaocd36olnzif1/Screen...%2011.07.00.png?dl=0

If you click on the title: 'Mike Watkins - Board Member' it goes to the form page, the page has the header: 'Online Donation' and the actual campaign title does not appear at all: 'Mike Watkins - Board Member'. This doesn't really make sense to me;

That title is created in the /components/com_jdonation/view/donation/tmpl/default.php file on line 41
<h1 class="jd-page-title"><?php echo JText::_('JD_DONATION'); ?></h1>

Can this be changed so that it shows the campaign name instead.

Thank you,

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #82574 by Frank
Replied by Frank on topic Using Campaign Title on Donation Page
So I finally figured out how to do this, replace:
<h1 class="jd-page-title"><?php echo JText::_('JD_DONATION'); ?></h1>
on line 41 of /components/com_jdonation/view/donation/tmpl/default.php
With this:
<h1 class="jd-page-title"><?php echo $this->campaign->title; ?></h1>
Hope this helps any future users.
The following user(s) said Thank You: Sam Austrin-Miner

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt