Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7573425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:10:44+00:00 2026-05-30T16:10:44+00:00

Apparently you can reference a partial with Spark view engine as a tag with

  • 0

Apparently you can reference a partial with Spark view engine as a tag with the same name as the partial e.g: <myPartialName /> instead of using <render partial="myPartialName" />

That is great, but how do you reference the partial if it is in a sub folder? e.g. <render partial="partials/myPartialName" />

Anyone know if there is a way to deal with this?

UPDATE

After reading the documentation on organising content, I saw the following paragraph which explained why the above was not working:

Implicit partial rendering

Finally, if your partial file starts with an underscore character the
rest of the file name can be used as a new special element. This is
nothing more than being used as a shortcut for but it
sure looks cool.

I.e. you must append an underscore to a partial name if you want to use implicit rendering, as mentioned in the answer by lomaxx below. So to use the tag <myPartialName/> the actual partial file would have to be _myPartialName.spark.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:10:45+00:00Added an answer on May 30, 2026 at 4:10 pm

    The issue is that if you have a partial named _myPartialName (note the underscore) in your subfolder, then you need to reference the name explicitly as the shortcuts don’t handle the underscore in subfolders properly. So you need to explicitly include the underscore like so:

    <render partial="partials/_myPartialName" />
    

    Or you can just change the partial name and remove the underscore

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apparently I can't move files on different volumes using Directory.Move. I have read that
apparently it works Can you name reasons beyond good practices not to give these
Since there is apparently no Flash control that can accept bitmap pastes , I
Apparently, they're confusing. Is that seriously the reason? Can you think of any others?
Why reference types and pointers are same in compiled code?(You can see in third
Apparently you can easily obtain a client IP address in WCF 3.5 but not
I always thought an SQL compiler would break but apparently nesing can nearly be
I've tried to find an answer to do this online but apparently it can't
When putting a favicon on your site, you can apparently use an animated gif,
I'm apparently laboring under a poor understanding of Python scoping. Perhaps you can help.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.