Re: BizBuzz - New Template

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

Okay, so I did that. Thank you for the help! I finally realized where I should be searching. U.U

Once I did that, I got another error:

Code: Select all

Unable to load template module_db_tpl 'News;summarynewsFrontpage'

#0 /home/parukian/public_html/lib/classes/class.Smarty_CMS.php(326): Smarty_Internal_TemplateBase->fetch('module_db_tpl:N...', 'p15|nsc19245527...', '', NULL, false, false, false)
#1 /home/parukian/public_html/modules/News/action.default.php(361): Smarty_CMS->fetch('module_db_tpl:N...', '|nsc192455273c7...', '')
#2 /home/parukian/public_html/lib/classes/class.CMSModule.php(1731): include('/home/parukian/...')
#3 /home/parukian/public_html/lib/classes/class.CMSModule.php(1799): CMSModule->DoAction('default', 'm06609', Array, '15')
#4 /home/parukian/public_html/lib/module.functions.php(123): CMSModule->DoActionBase('default', 'm06609', Array, '15')
#5 /home/parukian/public_html/lib/classes/class.CMSModule.php(302): cms_module_plugin(Array, Object(Smarty_Internal_Template))
#6 /home/parukian/public_html/tmp/templates_c/dd44cb2728e71d341460b2e1d701f49fd57aed9f.tpl_body.25.php(138): CMSModule::function_plugin(Array, Object(Smarty_Internal_Template))
#7 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php(180): content_52587e6f1d1b76_62239049(Object(Smarty_Internal_Template))
#8 /home/parukian/public_html/lib/classes/class.Smarty_CMS.php(326): Smarty_Internal_TemplateBase->fetch('tpl_body:25', 'p15', NULL, NULL, false, false, false)
#9 /home/parukian/public_html/index.php(240): Smarty_CMS->fetch('tpl_body:25')
#10 {main}
I'm pretty sure I named the file correctly, so I'm not sure what the problem is now. Any more help would be appreciated.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: BizBuzz - New Template

Post by Dr.CSS »

Unable to load template module_db_tpl 'News;summarynewsFrontpage'

This means it can't find a News Summary template called Frontpage, either take out the call in the {news} tag or make sure you have a summary template called Frontpage...
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

Okay.. so I did that, and I applied the same fix for newsFooter. Now my page is void of all code but text and some random string of a URL.

http://prntscr.com/1wyf12

I have the Bizbuzz template set to Default and Active, and have absolutely no idea what happened now...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: BizBuzz - New Template

Post by Dr.CSS »

When you mentioned...
Gary29 wrote: I'm pretty sure I named the file correctly,
What do you mean exactly.?
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

I was referring to the first line of error code

Unable to load template module_db_tpl 'News;summarynewsFrontpage'

Looking at that I thought I named the file incorrectly (as I knew I had the template file there) which is why it was unable to find/load it. That's what I checked, and it turns out I had named the file as "summarynewsFrontpage" instead of just Frontpage. I had the same issue with "summarynewsFooter" and resolved that as well, but I can't figure out the reason for this current problem (my previous post) with getting the theme working.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: BizBuzz - New Template

Post by Rolf »

File? It is the name of the News summary template in the CMSMS Admin!
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

Lol, that is what I meant. I just used the wrong terminology for it. I'm going to try and uninstall and reinstall the theme, and see if the current issue is resolved as I have no idea what happened. Will report back when I do that.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: BizBuzz - New Template

Post by Dr.CSS »

Looks like you may need to start over from scratch, I'm thinking you did something unconventional and unless we know every step you took to get here we aren't going to be much help...
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

Okay, I deleted all the templates and stylesheets relating to BizBuzzV2 and reset the Search Template to default. I kept AdvancedContent, Gallery, FormBuilder and Supersizer installed, left Content Type set to Advanced Content, and left Gallery-tpl-Slider.xml and contactFooter.xml imported in the Gallery and FormBuilder modules respectively.

Instructions:

INSTRUCTIONS:
----------------------------------------------------------------------------------------------------------
How to use this theme on your website:

1. Before installing the Template you should install following modules/plugins:
AdvancedContent http://dev.cmsmadesimple.org/projects/content2
Gallery http://dev.cmsmadesimple.org/projects/gallery
FormBuilder http://dev.cmsmadesimple.org/projects/formbuilder
SuperSizer plugin http://dev.cmsmadesimple.org/projects/supersizer
2. Go to "Layout -> Theme Manager -> Import" select BizBuzzV2.xml file and click "import"
3. Go to "Content -> News -> Summary Templates" and create News templates as included in "NewsSummary" folder
4. Go to "Content -> News -> Detail Templates" and create News template as inlcuded in "NewsContent" folder
5. Go to "Extensions -> Search ->" and copy content from SearchTemplate.txt file
6. Go to "Content -> Gallery -> Templates" and import Gallery-tpl-Slider.xml" file from "Gallery" folder
7. Go to "Extensions -> Modules -> FormBuilder" and import contactFooter.xml file from "FooterForm" folder (enter your email address for form function)
8. Upload the images, javascript and font files to uploads/BizBuzzV2/ folder! (for some reason the export function didn't include the images - i did try it for 4x with same result)
9. Now the Template is ready, as last step you should apply to your pages "Content Type -> Advanced Content"
from DropDown to enable AdvancedContent module functions in the Template

What I did just now:

1. Imported BizBuzzv2.xml at Layout -> Theme Manager -> Import
2. Went to Content -> News -> Summary Templates and added newsSummarypage newsFooter and newsFrontpage
3. Went to Content -> News -> Detail Templates and created newsDetail
4. Went to Extensions -> Search -> Search Template and replaced the content with the SearchTemplate.txt file's content.
5. Set all Pages to the BizBuzz V2 template before realizing I still needed to fix the issue with the capture tag. Went to BizBuzzV2 // Default template and found

Code: Select all

{capture assign=galleryfolder value=$entry->gallery}{content block="Gallery Folder" description='Enter the name of the Gallery folder you wish to use'  page_tab='Header Options' wysiwyg='false' oneline='true'}{/capture}
and replaced it with

Code: Select all

{content block="Gallery Folder" description='Enter the name of the Gallery folder you wish to use' page_tab='Header Options' wysiwyg='false' oneline='true' assign='galleryfolder'}
6. Then I Set to All Pages once again and got the same issue as I mentioned ; Just the plaintext, no CSS, HTML, nothing, like my screenshot in an above post. I tried seeing if the News summary template was supposed to be "newspage" instead of "newsSummarypage" but that didn't do anything so I left it at newsSummarypage.
About Step 8 in the instructions, when I first installed it I had used FileZilla and uploaded all of the files from the uploads/BizBuzzV2 folder to the server, overwriting any files that were already there (was that my mistake? Probably was, as I didn't do anything else out of the ordinary)
uniqu3

Re: BizBuzz - New Template

Post by uniqu3 »

Your Screenshot is showing "Print" Stylesheet formatting, means you should look at the content of imported Stylesheets, there should be "Main" and "Print" stylesheets, probably prefixed with BizBuzz: or theme:

The message about missing News template is due to "let's call it bug" in export or import, which means that most possibly News templates were renamed while importing but in BizBuzz page Template {news} tags still refer to original Template names, you can come around this issue by looking at News module which Templates were imported, open Page Template and replace "summarytemplate" or "detailtemplate" param content with correct News tmeplate names.
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

I do have BizBuzzV2 // Main and BizBuzzV2 // Print stylesheets, as for checking the content of them, anything specific I am looking for? I would post the code in BizBuzzV2 // Main but it's quite long.

I have {news summarytemplate='newsFrontpage'} and {news summarytemplate='newsFooter' number='5'} in the page template, but my summary templates are named that. Should I have changed the name of the "summarytemplate" param content instead of renaming the actual template? I don't have any "detailtemplate" params though. You're referring to BizBuzzV2 // Default under Layout -> Templates, correct?
uniqu3

Re: BizBuzz - New Template

Post by uniqu3 »

Regarding Stylesheets, in Print there is less content then in Main, if thats correct then you should have a look at Print Stylesheet which Media-Type was set, maybe something went wrong on import and no media type was set for it, which would explain why layout Stylesheet is being overridden with Print styles.

Main = screen
Print = print

Regarding News templates, should of worked either changing in Template or renaming in News module, but anyway, if you still see error about missing template try changing both to whatever error is referring to.
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

Yep Print has a lot less than Main. Media-Type for Print is print, while Media-Type for Main is projection, screen and tv. Should Main only be screen in that case?

I don't get the missing template error for the News templates anymore once I changed the name to match what was in the page template, so that problem is solved.
uniqu3

Re: BizBuzz - New Template

Post by uniqu3 »

Well without seeing the site i can not say much more, but make sure that "Main" is attached to page template.
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

I could show you the site if needed (I am assuming you'd need to be an admin on it to figure out what the problem is). I checked and "Main" as well as "Print" were both attached to the page template. I removed Print from the association, but it didn't change anything so I added it back.
Post Reply

Return to “Layout and Design (CSS & HTML)”