• If I select “Langage Label” as “File Name”, then it shows language name in front-end. While given filename/title is expected there.

    • This topic was modified 4 years, 9 months ago by Iqbal Kabir.
    • This topic was modified 4 years, 9 months ago by Iqbal Kabir.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vicky Agravat

    (@vickyagravat)

    Hello @ikbir

    If you have selected Language Label as File Name. on setting page. Still you have to edit the Code Block to set File Name.

    There are two conditions to check before display File Name on Label

    if Language Label is set as File Name and fileName attribute is set, it will display File Name.

    if Language Label is set as File Name and fileName attribute is not set, it will display Language Name.
    Because, some one not like generic file name, such as file.c or index.php etc. to display all other code blocks on their site. Due to this we only add generic filename on Code Block on editor and expect that user enter it manually, what he want, or he like given generic filename and save the post.

    Hope you have clear understanding of the logic behind it.

    Thank you.

    Thread Starter Iqbal Kabir

    (@ikbir)

    Thank you for the earlier reply.

    On settings page, if I set Language Label as File Name, then it works fine.

    And if is set that as Language Name then only language name will be shown on every code snippet. In this case, individual file name/title will not work.

    I think this is what you meant.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“File Name” label not showing in front-end.’ is closed to new replies.