Forum Activity for @blindmime

blindmime
@blindmime
06/04/15 10:28:09AM
776 posts

module template generate a data csv file


Design and Skin Customization

I can see creating a file a user can download when packaging a skin. That's a static event. But in my case, it's dynamic data that changes often. Envision house properties as the profiles and tasks performed on these properties as this module. Each download file is comprised of the tasks performed in a particular month, generated by a jrCore_list call. I guess I could save the file every time the module form is updated, but it's got to save a different file for each month which seems probably not a good way to do this.

If I could simply not generate a header and footer, I think I might get what I want by right-clicking and saving.
blindmime
@blindmime
06/04/15 06:57:25AM
776 posts

Tree Note


Genosis

Yes, I'm using the Genosis skin.

The Trees menu item was missing, but after running an integrity check it's there now.
blindmime
@blindmime
06/03/15 08:43:54AM
776 posts

module template generate a data csv file


Design and Skin Customization

But I do want it on the index page and other pages.

I just don't want it on the report page.

And I'm actually not sure if this is getting me to where I want to be. I want a link to "report" that downloads the csv file rather than opening it in the browser. Can I run the function Brian referenced earlier from a call in a template (so the correct headers are created?

Hope that makes sense.
updated by @blindmime: 06/03/15 08:49:04AM
blindmime
@blindmime
06/03/15 08:42:13AM
776 posts

Tree Note


Genosis

Thanks, Douglas. I don't appear to have a Trees menu, but I did find the Tree form here: */gencore/browse and got it changed.
blindmime
@blindmime
06/02/15 12:41:16PM
776 posts

module template generate a data csv file


Design and Skin Customization

This is an Aparna-generated module.

report.tpl is, in fact, saved exactly as you suggested, yet it outputs a header and footer.

Could it be that templates use index.tpl as a framework?

This is index.tpl:
{jrCore_include template="header.tpl"}

<div class="block">

    <div class="title">
        <h1>{jrCore_lang module="agTask" id="10" default="Task"}</h1>
    </div>

    <div class="block_content">

        {jrCore_list module="agTask" order_by="_item_id numerical_desc" pagebreak="10" page=$_post.p pager=true}

    </div>

</div>

{jrCore_include template="footer.tpl"}
blindmime
@blindmime
06/02/15 12:16:30PM
776 posts

Tree Note


Genosis

It generates the note in the yellow area, I believe.
tree-note.jpg tree-note.jpg - 51KB

updated by @blindmime: 06/02/15 12:16:46PM
blindmime
@blindmime
05/31/15 03:05:54PM
776 posts

Tree Note


Genosis

Where is jrGenCore_get_active_tree_note set?

I moved my site to a different domain and this link appears to be linked to the old domain. Everything else took on the new domain OK.
updated by @blindmime: 07/04/15 11:11:55PM
blindmime
@blindmime
05/29/15 07:01:25AM
776 posts

module template generate a data csv file


Design and Skin Customization

Thanks Michael.

The file needs to be dynamic, based on a jrCore_list call (or whatever is done via a module). It needs to be a comma separated value text file (a csv file). I could create such a thing in Jamroom 4 from a template (this is where I'm coming from, reference-wise).

I have the template working in jr5. The template is:
"Property","Month","Category","Task"<br>

{jrCore_list module="agTask" profile_id=$_profile_id order_by="_created asc" limit="10000" search1="task_complete = on" search2="task_invoiced = March" search3="task_entered = on" template="csv_list.tpl"}

And csv_list.tpl is
{jrCore_module_url module="agTask" assign="murl"}
{if isset($_items)}
{foreach from=$_items item="item"}
"{$item.task_week|date_format}","{$item.task_testcategory_0}{if strlen($item.task_testcategory_1) > 0} | {$item.task_testcategory_1}{/if}{if strlen($item.task_title) > 0} | {$item.task_title}{/if}","{$item.task_invoiced}","{$item.task_amount_invoiced}"<br>
{/foreach}
{/if}

If the page didn't also include a header and everything else, it would done.

I just need to know how to get that same thing in whatever jr5 does now.
blindmime
@blindmime
05/28/15 02:26:43PM
776 posts

module template generate a data csv file


Design and Skin Customization

A little bit. This goes in profile.php? I'm not well versed in programming modules, to be honest. I know I probably need to go through the docs. Hoping it's possible to get to the heart of it though. I just need a link to open a csv file in excel with values from a template, if that makes sense. The light isn't on just yet -- can I get another clue or two?
blindmime
@blindmime
05/12/15 01:25:41AM
776 posts

Upgrading YouTube to newest version 1.2.0


Announcements

strumelia's issue appears to be the same one I am seeing as I noted above where Brian indicated it was possibly a youtube caching issue.

I've tried regenerating a key which has both worked and not worked. Not sure if that's what "fixed" it or if this issue is just a periodic caching glitch, however. Just sharing what I've encountered.

I haven't been seeing the issue today, incidentally.
  36