HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


site/index.php?page=catalogues&type=entry, theme question

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#33702 (In Topic #7596)
Avatar

Community saint

thought since I keep using the wrong words I will put the url. site/index.php?page=catalogues&type=entry

On that page I want to be able to Make an entry that has a field that starts out hidden and is able to be opened to see the data inside.
Kind of like your side bar on the home page but with the curve and make it so it says click here to read more.

The reason I wish to do this is the amount of data I am putting in is quite a lot and make you scroll down quite a bit. So I was hopping to be able to use that for a few of the less important fields.

Thanks,


Amy

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33708
Avatar

Community saint

Knowing how much work you put into your 'modding' Ami, I hesitate to ask if you've considered the simple 'HIDE' …  '/HIDE' option?

I think the box can be set to curved, the title can be anything you want and it can also have the width parameters set to whatever you wish.

Ignore me if you have!

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#33709
Avatar

Community saint

yes but using the hide makes a box in a box and I want it one box.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33711
Avatar

Community saint

Understood.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#33712
Avatar

Community saint

Thanks though it is some thing I thought of.
Its how I got the idea for this post. I just wanted one box. do you know where the template is for the hide?

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33715
Avatar

Community saint

Try COMCODE_HIDE.tpl.

I think that's the one you're looking for.

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#33716
Avatar

Community saint

OK thanks.

I tried this but it did not work the way I wanted or at all.

Code

{+START,IF,,{FIELD},Description}}
    <div>
      <h4 class="comcode_quote_h4">
         <a class="hide_button" href="#" onclick="Javascript: event.returnValue=false; hideTag(this.parentNode.parentNode); return false;">{FIELD*}
            <img class="blend" alt="{!EXPAND}/{!CONTRACT}" src="{$IMG*,expand}" />
         </a>
         <span class="accessibility_hidden">, </span>
         <a class="hide_button non_link" href="#" onclick="Javascript: event.returnValue=false; hideTag(this.parentNode.parentNode); return false;">{TEXT}</a>
      </h4>
      <div class="hide_tag" style="display: {$JS_ON,none,block}">
         <div class="comcode_quote_content comcode_quote_content_titled">
            {VALUE}
         </div>
      </div>
   </div>
{+END}

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33718
Avatar

Community saint

 

Code

 {+START,IF_NON_EMPTY,{VALUE}}
{+START,IF,{$AND,{$NEQ,{FIELD},Title},{$NEQ,{FIELD},Description}}}
{+START,BOX,{FIELD*},100%,curved}
{VALUE}
{+END}
{+END}
{+END}

{+START,IF,{$EQ,{FIELD},Description}}
 {+START,BOX,,100%,curved}
<a class="hide_button" href="#" onclick="Javascript: event.returnValue=false; hideTag(this.parentNode.parentNode); return false;">{FIELD*}
 <img class="blend" alt="{!EXPAND}/{!CONTRACT}" src="{$IMG*,expand}" />
 </a>
 <span class="accessibility_hidden">, </span>
 <a class="hide_button non_link" href="#" onclick="Javascript: event.returnValue=false; hideTag(this.parentNode.parentNode); return false;"></a>
 
 <div class="hide_tag" style="display: {$JS_ON,none,block}">
 
 {VALUE}
 
 </div>
 {+END}
{+END}
I almost have it.
It does work, just need to Get the curved as part of the thing you click on.
BY the way thats every thing in that template for the entry page.
 

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33730
Avatar

Community saint

I got it working with this.

Code

 {+START,IF_NON_EMPTY,{VALUE}}
{+START,IF,{$AND,{$NEQ,{FIELD},Title},{$NEQ,{FIELD},Description}}}
{+START,BOX,{FIELD*},100%,curved}
{VALUE}
{+END}
{+END}
{+END}

{+START,IF,{$EQ,{FIELD},Description}}
  <div class="standardbox_wrap_curved">
<div class="standardbox_curved_title_left">
         <div class="standardbox_curved_title_right">
            <h4 class="standardbox_title_curved">
<a class="hide_button" href="#" onclick="Javascript: event.returnValue=false; hideTag(this.parentNode.parentNode); return false;">{FIELD*}
            <img class="blend" alt="{!EXPAND}/{!CONTRACT}" src="{$IMG*,expand}" />
         </a>
         <span class="accessibility_hidden">, </span>
         <a class="hide_button non_link" href="#" onclick="Javascript: event.returnValue=false; hideTag(this.parentNode.parentNode); return false;"></a>  
</h4>
               
      
      <div class="hide_tag" style="display: {$JS_ON,none,block}">
         <div style=" min-height: 201px" class="standardbox_inner_curved standardbox_main_classic">
            {VALUE}
</div>
         </div>
         </div>
<div class="standardbox_curved_bottom_left">
      <div class="standardbox_curved_bottom_right">
         <div class="standardbox_curved_bottom_middle">&nbsp;</div>
      </div>
      </div>
      </div>
</div>
{+END}

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: