2015-07-07, 01:54:16
Hi, I posted allready a Reply in the Search Plugin´s Forum to explain my problem
http://get-simple.info/forums/showthread...s#pid51894
Unfortunately there was no answer!
Maybe the explanation of the problem was to weird , or it was the wrong forum - but I have to mix several plugins.
I´m trying to solve my problem with a simplier aproach now, but there is still some coding problem.
A problem for me as a non-coder, but for php guys it shouldn´t be a major task:
I have several galleries (I18N) and my users will add more.
I have a page where I want to list the galleries.
To make it easier for the users, I set up "I18N Special Pages" with the "...extras"-Plugin.
So in the page config there is no content field, but extra text-fields to type the names of the galleries (witch is also the name of the galleries page). There can be added more alike fields by the user.
The field-name is "gallerie".
In the view field of the special pages type I´m calling the field name like this to get the galleries titles:
this works fine, so it seems to be set up correctly.
To get a link to a gallery with the first thumbnail I had to code:
If I replace the variable with a real gallery name by hand, this works as well and I have a thumb with the titles.
But how can I get the above call for the name into the call for a gallery-link!?
As I said, I´m no coder, so I messed around a lot with the code, but could not find the right way.
Please, if someone is so kind to write me a few lines of nice code with get.. within a get...!
Just to be shure, you get me, I right down what I mean, but of course, that´s not correct php anymore:
hope you can help me,
thanks
pikku
http://get-simple.info/forums/showthread...s#pid51894
Unfortunately there was no answer!
Maybe the explanation of the problem was to weird , or it was the wrong forum - but I have to mix several plugins.
I´m trying to solve my problem with a simplier aproach now, but there is still some coding problem.
A problem for me as a non-coder, but for php guys it shouldn´t be a major task:
I have several galleries (I18N) and my users will add more.
I have a page where I want to list the galleries.
To make it easier for the users, I set up "I18N Special Pages" with the "...extras"-Plugin.
So in the page config there is no content field, but extra text-fields to type the names of the galleries (witch is also the name of the galleries page). There can be added more alike fields by the user.
The field-name is "gallerie".
In the view field of the special pages type I´m calling the field name like this to get the galleries titles:
Code:
<h2><?php get_special_field('gallerie'); ?></h2>
To get a link to a gallery with the first thumbnail I had to code:
Code:
<?php get_i18n_gallery_link('my-gallery-name',
array('url'=>'my-gallery-slug', 'thumb'=>0)); ?>
But how can I get the above call for the name into the call for a gallery-link!?
As I said, I´m no coder, so I messed around a lot with the code, but could not find the right way.
Please, if someone is so kind to write me a few lines of nice code with get.. within a get...!
Just to be shure, you get me, I right down what I mean, but of course, that´s not correct php anymore:
Code:
<?php get_i18n_gallery_link('get_special_field('gallerie');',
array('url'=>'get_special_field('gallerie');', 'thumb'=>1)); ?>
hope you can help me,
thanks
pikku