I want to take over the portfolio template to another content type. Has everything worked except the Full Slider "Full white Slider" and "Full Hight Slider" are not displayed.
I have all the code now by and not find the clue where the mistake because the can not display are.
About Portfolio Type it works beautifully. Only I can not migrate all existing content on the portfolio, so I need the layout of portfolio to another ContentType
Can you help me?
Hi,
Please
- create a new file which has name type as page--node--tyle--"name new content type".tpl.php in templates/page (similar to file page--node--tyle--portfolio.tpl.php). Note: code of your 2 sliders is from line 135 to line 170 file page--node--tyle--portfolio.tpl.php.
- go to file page.preprocess.inc lines from 254 to 256: print slider by added media in content type
copy these 3 lines, paste and customize base on your own content type.
- in templates/fields, field--field-multimedia--portfolio.tpl.php: structure of media content type
create a new similar file, name type: field--"name field media new content type".tpl.php (in new content type, machine name of field media)
Please do not copy whole old file then paste to new one and you need to named file following content type to advoid conflicting with old portfolio (example: newcontent is beitrag so you need to rename $display_portfolio to $display_beitrag ). Also in file page.preprocess.inc, please replace line 206
if ($node->type == 'portfolio') {
with
if ($node->type == 'beitrag') {
So please send us your site url and admin account by private comment. We would like to have a check in your site.
I would respectfully ask again if they have already found a fault?
Hi Brave,
Sorry for the late respond,
We have just resumed our service from a 4-day holiday
Just working on your issue and feedback you at the soonest time
Thank you for your understanding and your patience
Hi,
We need your FTP account also
Please send us
Sorry,
We can not access FTP. Could you check?
Also, please:
Use F12, select header top place mobile in mobile version, you can see it is empty. It means page header second have not been rendered yet. You need to check file tpl of new content type and other page tpl files if code line "<?php print render($page['header_second']); ?>" exits in tag
<div class="header_index">
</div>
Never mind. We fixed problem for you. Check your site please.
Thanks it worked, I can grab the code in a js file? Many thanks for your help!
I could also solve the problem in their demo. How can I solve the problem
Website http://demo.megadrupal.com/d7/md-make/portfolio-single-full-width