-
AuthorPosts
-
July 23, 2017 at 3:56 am #1050709
In a previous post HERE, Pankaj Sharma created a block for me called "masthead". I noticed there was an update to my Fixel Template so I installed that update to my site. After doing so the "masthead" block is no longer there. I see the file under tpls/blocks/ but it’s not listed in the admin panel under the fixed template and when I load my site of course the content I had set for that block is missing.
Would you kindly please add it back like you did before? Thank You!
Notice my website was moved to another hosting server and the IP address has changed. See details below.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 24, 2017 at 8:22 am #1051017Hi,
Kindly follow that topic and apply the solution into ‘local’ folder, if you changed in default /tpls/ directory in template folder, it will be overwritten when updating new version.
Regards
July 24, 2017 at 1:14 pm #1051096I didn’t change anything. He was the one that created and set this up for me. I tried to follow the instructions he gave me but those instructions are not complete and do not give step by step of what to do an how. I spent 3 hours trying to figure it out and could not do so. Please contact Pankaj Sharma and have him to redo what the template update removed. I need to get my site live ASAP and did not expect it to get removed when I updated my template. It also needs setup so that the next update it will not be removed like this time.
And when you say ‘local’ what in the world does that mean? I need to know the actual location that folder should be created at and does the folder need to be named "local"? You need to be more specific with yours instructions!
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 24, 2017 at 2:08 pm #1051107Hi,
I re-open that topic, you can ask Pankaj again for what he did on your site for details.
With the ‘local’ folder inside template, for each template built with T3 framework, you can add your customization inside this folder so that when you update new version for template, this custom work will not be affected. Check out this docs for more info: http://www.t3-framework.org/documentation/extend-com-content#isolate-template
Regards
July 24, 2017 at 3:24 pm #1051125That other topic is still closed! I can not post anything into it.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 24, 2017 at 3:36 pm #1051127Hi
Sorry for my late reply I have not got the information of this thread.I just jumped into this thread.
For the new module position :I checked your site and it still has the masthead position showing fine.
Kindly check it again.
I also noticed the override is in the local folder. of the test site.
You can copy the file "/tpls/blocks/masthead.php" in template "ja_fixel". to your new site.
and then copy the /tpls/default.php and home.php and copy the same on the new site.
http://prntscr.com/fzo2np
Now open the local folder and paste the above two file in it with the same path.
By adding the files in the local folder they are not overridden on template update.Hope it helps.
Regards
July 24, 2017 at 11:17 pm #1051177I am afraid you were still pointing to the old server. Since you worked on my site last they have moved me to a new server. You need to point test.shoals.k12.in.us to IP address: 38.86.76.85
Then you will see the masthead is not working anymore. I actually had modules displayed using the masthead block but now they are gone after the template update. Can you please fix it and make it so that when the new updates are applied it does not remove it again? Thanks!
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 27, 2017 at 3:00 am #1051858Do I place the "masthead.php" file in the local folder as well? or does that go in the tpls/blocks/ location?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 27, 2017 at 3:20 am #1051862Hi
Yes, add the files in same location for an override.
/local/tpls/blocks/ masthead.php
and /local/tpls/home.php and default.phpRegards
July 27, 2017 at 4:34 am #1051866Ok, Did that and I got that block back. I was lucky I still had access to the other server so I could pull those files and copy them over the the new server.
Now I am trying to duplicate the masthead block right below that block and calling it "events"
I have my events.php file under local/tpls/blocks with this code in the file:
<?php
/**- @package T3 Blank
- @copyright Copyright (C) 2005 – 2012 Open Source Matters, Inc. All rights reserved.
- @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined(‘_JEXEC’) or die;
?><?php if ($this->countModules(‘events’)) : ?> <div class="container t3events <?php $this->_c(‘events’) ?>" style=" padding-top: 20px;"> <jdoc:include type="modules" name="<?php $this->_p(‘events’) ?>" /> </div>
<?php endif ?>
I have added <?php $this->loadBlock (‘events’) ?> in the home.php file under local/tpls
I have added <?php $this->loadBlock (‘events’) ?> in the default.php file under local/tpls
When I go into my template settings and layout in the admin panel it says it can’t find the block. What am I doing wrong? See Image.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 27, 2017 at 7:01 am #1051886Hi
Kindly add events.php file in the tpls/blocks folder first
Local folder is an override for the files that already present in the template folder.Regards
July 27, 2017 at 4:48 pm #1052017I placed that file in that location and still getting the block not found message as in my previous screen shot.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 28, 2017 at 3:18 am #1052100Hi
You are using default.php layout from the local folder but you have not defined the blocks in the /tpls/blocks/default.php
http://prntscr.com/g193ls
Kindly add them also use the correct code as showing below
In your code there is syntax error.<?php $this->loadBlock ('masthead') ?> <?php $this->loadBlock ('events') ?>
Hope it helps.
Regards
July 29, 2017 at 6:32 pm #1052409In this file: local/tpls/default.php I have this in the code:
<?php $this->loadBlock (‘header’) ?><?php $this->loadBlock ('masthead') ?> <?php $this->loadBlock (‘events’) ?> <?php $this->loadBlock ('mainbody') ?>
I have this file: local/tpls/blocks/events.php I have this in the code:
defined(‘_JEXEC’) or die;
?><?php if ($this->countModules(‘events’)) : ?> <div class="container t3events <?php $this->_c(‘events’) ?>" style=" padding-top: 0px;"> <jdoc:include type="modules" name="<?php $this->_p(‘events’) ?>" /> </div>
<?php endif ?>
I DO not have a default.php file in local/tpls/blocks/ Am I suppose to?
AuthorPostsThis topic contains 21 replies, has 3 voices, and was last updated by Pankaj Sharma 7 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum