[LON-CAPA-admin] List of parts and hidden parts

H. K. Ng hkng at fsu.edu
Fri Sep 4 08:46:21 EDT 2020


Thanks Stuart,

I remember asking this question before but somehow your previous reply
never reached me by email. Same thing happened to my question about
loncapa3 giving an error when students upload a file. (BTW, thanks for that
fix.) I will make sure to check the maillist next time.

Regards,
-hk


On Fri, Sep 4, 2020 at 8:32 AM Raeburn, Stuart <raeburn at msu.edu> wrote:

> Hello HK,
>
> The part id is available from $external::part
> See:
> https://urldefense.com/v3/__http://mail.lon-capa.org/pipermail/lon-capa-users/2019-March/005400.html__;!!PhOWcWs!gah2BYDLOuq3vn30aidxcJXVA3_ql3ETG0F01zLC2pBT75VOVgBY-O7F-Vkl$
>
> Stuart Raeburn
> LON-CAPA Academic Consortium
> ________________________________________
> From: LON-CAPA-admin <lon-capa-admin-bounces at mail.lon-capa.org> on behalf
> of H. K. Ng <hkng at fsu.edu>
> Sent: Thursday, September 3, 2020 6:39 PM
> To: list about administration and system updating
> Subject: Re: [LON-CAPA-admin] List of parts and hidden parts
>
> Hi all,
>
> My bad, the &EXT('resource.visibleparts') only returns the visible parts.
> My issue is that the style file loops over the problem and each time it
> sees a part tag, it processes it regardless of whether it is hidden or not.
> What I need is when it sees a part tag, I need to be able to get the part
> id and if it is not in the visibleparts list, to skip it. Any idea how to
> get the part id when the sty file sees a part tag? Thanks.
>
> Regards,
> -hk
>
>
> On Thu, Sep 3, 2020 at 4:09 PM H. K. Ng <hkng at fsu.edu<mailto:hkng at fsu.edu>>
> wrote:
> Hi all,
>
> I have a sty file to standardize the display of problems. The
> &EXT('resource.visibleparts') function returns all parts including those
> that are hidden. Is there a call function that returns the parts that are
> not hidden? Thanks.
>
> Regards,
> -hk
>
> _______________________________________________
> LON-CAPA-admin mailing list
> LON-CAPA-admin at mail.lon-capa.org
>
> https://urldefense.com/v3/__http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin__;!!PhOWcWs!gah2BYDLOuq3vn30aidxcJXVA3_ql3ETG0F01zLC2pBT75VOVgBY-DlO34kH$
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-admin/attachments/20200904/836d906e/attachment-0001.html>


More information about the LON-CAPA-admin mailing list