solved Aparna clone text area problem

Intro2Music
Intro2Music
@intro2music
10 years ago
121 posts
Hi Paul, I hope you can help.

I created an Aparna Clone (Channel) and set content (text area) and description fields so's I can have an iFrame in the content. Looking at the resulting profile page I can see two default images which I can do without and some text that looks like stuff I'd expect to see only in the ACP, e.g.,

Channels_pending: 0
Channels_title_url: mobile-browsing
Channels_description: Mobile Browsing Module - for mobile devices

How do I go about getting rid of the text an images?

Here's a link so you can have a look yourself... http://www.intro2.tv/intro2-tv/channels/4/mobile-browsing

This is the first chance I've had to play around with Aparna. What an excellent tool it is! Nice work Pa.
updated by @intro2music: 05/03/14 12:47:32AM
paul
@paul
10 years ago
4,326 posts
Hi Mick
It looks to me that you need to edit the cloned /templates/item_detail.tpl
The default template that Aparna creates has no idea what you are build so just lists all datastore images and variables.
It looks to me that that is what's still happening.
Cheers
Pa


--
Paul Asher - JR Developer and System Import Specialist
Intro2Music
Intro2Music
@intro2music
10 years ago
121 posts
I managed to get rid of the images but I'm not sure what to delete from item_detail.tpl to stop the text from showing on the page. Here's my code...

    <div class="block_content">

        <div class="item">
            <div class="container">
                <div class="row">
                    <div class="col9 last">
                        <div class="p5">
                            <h2>{$item.channels_title}</h2>
                            {foreach from=$item item="v" key="k"}
                                {assign var="m" value="Channels"}
                                {assign var="l" value=$m|strlen}
                                {if substr($k,0,$l) == "channels"}
                                    <span class="info">{$k}:</span> <span class="info_c">{$v}</span><br>
                                {/if}
                            {/foreach}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {jrCore_item_detail_features module="i2Channels" item=$item}
    </div>

updated by @intro2music: 03/20/14 04:25:58PM
Intro2Music
Intro2Music
@intro2music
10 years ago
121 posts
Is this the code that should be deleted?

                        <div class="p5">
                            <h2>{$item.channels_title}</h2>
                            {foreach from=$item item="v" key="k"}
                                {assign var="m" value="Channels"}
                                {assign var="l" value=$m|strlen}
                                {if substr($k,0,$l) == "channels"}
                                    <span class="info">{$k}:</span> <span class="info_c">{$v}</span><br>
                                {/if}
                            {/foreach}
                        </div>
paul
@paul
10 years ago
4,326 posts
Yep - you got it in one ;-)


--
Paul Asher - JR Developer and System Import Specialist
michael
@michael
10 years ago
7,714 posts
Its going to depend on what you want to do.

aprana gives you a module to start expanding on, so how you expand depends on what you want to do.

What you have in that {foreach} loop is all the variables that are available to you. Pick the ones you want to use, then structure them how you want to see them.

remove the {foreach} loop and call the wanted items directly.

eg:
{$item.xxxxxx_title}

{$item.xxxxxx_body}

or whatever you called the fields you used when creating them via the Form Designer

"using the Form Designer"
https://www.jamroom.net/the-jamroom-network/documentation/getting-started/1275/using-the-form-designer
Intro2Music
Intro2Music
@intro2music
10 years ago
121 posts
Thanks for the tip, Michael.