Как получить имя пользовательского поля?

More
1 year 8 months ago #8746 by rra_01
Здравствуйте.

Кусок кода из шаблона модуля:
<form id="mod-finder-searchform-<?php echo $module->id; ?>" action="<?php echo $action; ?>" method="<?php echo $form_method; ?>" class="form-search">
    <div class="jlcontentfieldsfilter<?php echo $moduleclass_sfx; ?>">
        
        <?php foreach($fields as $v) : ?>
            <?php if($v):?>
                <div class="jlmf-section">
                    <?php echo $v; ?>
                </div>    
            <?php endif;?>
        <?php endforeach; ?>
        
        <?php if($enableOrdering) : ?>
        <div class="jlmf-section">
            <?php echo $orderingSelect; ?>
        </div>    
        <?php endif; ?>
        
        <div class="jlmf-section">
            <?php if (!$autho_send) : ?>
                <button type="submit" class="jlmf-button"><?php echo JText::_('MOD_JLCONTENTFIELDSFILTER_SUBMIT'); ?></button>
            <?php endif; ?>
            <div><button type="button" class="jlmf-link" onclick="return JlContentFieldsFilter.clearForm(this);"><?php echo JText::_('MOD_JLCONTENTFIELDSFILTER_RESET'); ?></button></div>
        </div>
 
    </div>
    <?php if($option == 'com_tags'){ ?>
    <input type="hidden" name="tag_category_id" value="<?php echo $catid; ?>">
    <?php } ?>
    <input type="hidden" name="jlcontentfieldsfilter[is_filter]" value="1">
</form>
 

Как из <?php echo $v; ?> получить имя пользовательского поля (<div class="jlmf-label"><?php echo $label; ?></div>)?  

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

Powered by Kunena Forum

Last from the forum

    • Авторизация не работает совсем
    • Дело только в кейшировании Как не странно, даже отключение кейшировании в основных настройках всеравно создаёт кеши в 4 версии . Нкскажу банк это или фича Проверить просто Заходите в админку в раздел Кеша и делаете полною очистку. После этого авторизация срабатывает. Однако она также срабатывает один раз на один аккаунт после этого если из аккаунта выйти будет открываться главная страница. Пускает только через 15 минут или после повторной очистки Кеша. Это я побороть так и не смог . Оставил как есть. Также надо отключить кейшировании модуля главного меню
    • In Component / Slogin
    • Google search and robots.txt
    • Hi. Your documentation says "the robots.txt file in the root of the site. Add the "sitemap: site.ru/sitemap.xml" entry to it. site.ru is your domain name." If I use sitemap.xml for Google search Console, should I add this line to the file robots.txt ? Or is it enough for Google indexing that I will add a link to sitemap.xml to the Sitemaps tab of Google search Console?  Thanks
    • In Component / JL Sitemap
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.