mirror of
https://github.com/e107inc/e107.git
synced 2025-04-14 01:22:13 +02:00
Issue #3103 Enhanced custom-fields example with custom button link.
This commit is contained in:
parent
1c7c230f41
commit
34a4f0ade8
@ -158,6 +158,9 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
|
||||
// Make image clickable for the display of a larger image in a modal window.
|
||||
$PAGE_WRAPPER['customfields']['CPAGEFIELD: name=myimage'] = "<td><a class='e-modal' data-modal-caption='{CPAGEFIELDTITLE: name=myimage}' target='_blank' href='{CPAGEFIELD: name=myimage&mode=raw&w=800}'>{---}</a></td></tr>";
|
||||
|
||||
//Custom description for URL link.
|
||||
$PAGE_WRAPPER['customfields']['CPAGEFIELD: name=myurl&mode=raw'] = "<td><a class='btn btn-primary' target='_blank' href='{---}'>View Website</a></td></tr>";
|
||||
|
||||
$PAGE_TEMPLATE['customfields']['body'] = '
|
||||
|
||||
<div id="custom-fields-example" class="col-xs-12 col-md-5 pull-right" style="margin-right:-15px">
|
||||
@ -179,6 +182,10 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
|
||||
{CPAGEFIELDTITLE: name=mydropdown}
|
||||
{CPAGEFIELD: name=mydropdown}
|
||||
{CPAGEFIELDTITLE: name=myemail}
|
||||
{CPAGEFIELD: name=myemail&mode=raw}
|
||||
|
||||
<!-- Variation of above -->
|
||||
{CPAGEFIELDTITLE: name=myemail}
|
||||
{CPAGEFIELD: name=myemail}
|
||||
{CPAGEFIELDTITLE: name=myfile}
|
||||
{CPAGEFIELD: name=myfile}
|
||||
@ -200,6 +207,10 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
|
||||
{CPAGEFIELDTITLE: name=myurl}
|
||||
{CPAGEFIELD: name=myurl}
|
||||
|
||||
<!-- Variation of above -->
|
||||
{CPAGEFIELDTITLE: name=myurl}
|
||||
{CPAGEFIELD: name=myurl&mode=raw}
|
||||
|
||||
</table>
|
||||
{CPAGEEDIT}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user